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