PrecedenceQueryParser
This query parser works exactly as the standard query parser (StandardQueryParser), except that it respect the boolean precedence, so is parsed to <(+a +b) (+c +d)> instead of <+a +b +c +d>.
See also
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.