/** Parse the query specified in String query, and use it for the specified search request. * Under normal usage, called by newSearchRequest(String,String). * @since 2.0 * @param query The string query to parse * @param srq The request object that the manager can use * @throws QueryParserException when the query cannot be parsed */ public static void parseQuery(final String query, final Request srq) throws QueryParserException { Query q = parseQuery(query); srq.setQuery(q); }
/** Parse the query specified in String query, and use it for the specified search request. * Under normal usage, called by newSearchRequest(String,String). * @since 2.0 * @param query The string query to parse * @param srq The request object that the manager can use * @throws QueryParserException when the query cannot be parsed */ public static void parseQuery(final String query, final Request srq) throws QueryParserException { Query q = parseQuery(query); srq.setQuery(q); }