Example usage for Java org.apache.lucene.queryparser.flexible.standard StandardQueryParser fields, constructors, methods, implement or subclass
The text is from its open source code.
StandardQueryParser() Constructs a StandardQueryParser object. | |
StandardQueryParser(Analyzer analyzer) Constructs a StandardQueryParser object and sets an Analyzer to it. |
Query | parse(String query, String defaultField) Overrides QueryParserHelper#parse(String,String) so it casts the return object to Query . |
void | setAllowLeadingWildcard(boolean allowLeadingWildcard) Set to true to allow leading wildcard characters. |
void | setAnalyzer(Analyzer analyzer) |
void | setDefaultOperator(StandardQueryConfigHandler.Operator operator) Sets the boolean operator of the QueryParser. |
void | setMultiFields(CharSequence[] fields) Set the fields a query should be expanded to when the field is null |