public Query parse(String queryText) {if ("*".equals(queryText.trim())) {return new MatchAllDocsQuery();}char data[] = queryText.toCharArray();char buffer[] = new char[data.length];State state = new State(data, buffer, 0, data.length);parseSubQuery(state);if (state.top == null) {return new MatchNoDocsQuery("empty string passed to query parser");} else {return state.top;}}

public Query Parse(string queryText){char[] data = queryText.ToCharArray();char[] buffer = new char[data.Length];State state = new State(data, buffer, 0, data.Length);ParseSubQuery(state);return state.Top;}
