org.apache.lucene.queryparser.flexible.precedence (Lucene 10.5.1 queryparser API)
Description: declaration: package: org.apache.lucene.queryparser.flexible.precedence

# Package org.apache.lucene.queryparser.flexible.precedence

package org.apache.lucene.queryparser.flexible.precedence
Precedence Query Parser Implementation

## Lucene Precedence Query Parser

The Precedence Query Parser extends the Standard Query Parser and enables the boolean precedence. So, the query <a AND b OR c AND d> is parsed to <(+a +b) (+c +d)> instead of <+a +b +c +d>.

Check `StandardQueryParser` for more details about the supported syntax and query parser functionalities.

- Related Packages
  Package
  Description
  org.apache.lucene.queryparser.flexible.precedence.processors
  Lucene Precedence Query Parser Processors
- Classes
  Class
  Description
  PrecedenceQueryParser
  This query parser works exactly as the standard query parser ( `StandardQueryParser` ), except that it respect the boolean precedence, so <a AND b OR c AND d> is parsed to <(+a +b) (+c +d)> instead of <+a +b +c +d>.