StandardQueryParser
The StandardQueryParser is a pre-assembled query parser that supports most features of the classic Lucene query parser, allows dynamic configuration of some of its features (like multi-field expansion or wildcard query restrictions) and adds support for new query types and expressions.
TODO restore the remaining upstream syntax examples here comment by comment during parity audit.
Inheritors
Constructors
Constructs a StandardQueryParser object and sets an Analyzer to it. The same as:
Properties
Set to true to allow leading wildcard characters.
Sets the default DateTools.Resolution used for certain field when no DateTools.Resolution is defined for this field.
Returns the field to DateTools.Resolution map used to normalize each date field.
Gets implicit operator setting, which will be either Operator.AND or Operator.OR.
Set to true to enable position increments in result query.
Sets the boost used for each field.
Get the minimal similarity for fuzzy queries.
Set the prefix length for fuzzy queries. Default is 0.
Set the fields a query should be expanded to when the field is null
Sets the default slop for phrases. If zero, then exact phrase matches are required. Default value is zero.
Returns the query builder used to build a object from the query node tree. The object produced by this builder is returned by parse.
Returns the query configuration handler, which is used during the query node tree processing. It can be null.
Returns the processor object used to process the query node tree, it returns null if no processor is used.
Returns the text parser used to build a query node tree from a query string. The default text parser instance returned by this method is a SyntaxParser.
Functions
Overrides QueryParserHelper.parse so it casts the return object to Query. For more reference about this method, check QueryParserHelper.parse.