public class QueryParser extends Object
| Constructor and Description | 
|---|
| QueryParser() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Query | parseQuery(String query)Parse the specified query. | 
| static void | parseQuery(String query,
          SearchRequest srq)Parse the query specified in String query, and use it for the specified search request. | 
public static void parseQuery(String query, SearchRequest srq) throws QueryParserException
query - The string query to parsesrq - The request object that the manager can useQueryParserException - when the query cannot be parsedpublic static Query parseQuery(String query) throws QueryParserException
query - The string query to parseQueryParserException - when the query cannot be parsedTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow