public static Query create ( String query ) throws QueryParserException { QueryTokenizer tokenizer = new QueryTokenizerImpl ( ) ; QueryParser parser = new QueryParserImpl ( ) ; return parser . parse ( tokenizer . tokenize ( query ) ) ; }
A factory method to create a query from string .