org.apache.lucene.queryParser.standard.builders | Standard Lucene Query Node Builders The package org.apache.lucene.queryParser.standard.builders contains all the builders needed to build a Lucene Query object from a query node tree. |
org.apache.lucene.queryParser.standard.config | Standard Lucene Query Configuration The package org.apache.lucene.queryParser.standard.config contains the Lucene query configuration handler and all the attributes used by it. |
org.apache.lucene.queryParser.standard.nodes | Standard Lucene Query Nodes The package org.apache.lucene.queryParser.standard.nodes contains QueryNode classes that are used specifically for Lucene query node tree. |
org.apache.lucene.queryParser.standard.parser | Lucene Query Parser The package org.apache.lucene.queryParser.standard.parser contains the query parser. |
org.apache.lucene.queryParser.standard.processors | Lucene Query Node Processors The package org.apache.lucene.queryParser.standard.processors contains every processor needed to assembly a pipeline that modifies the query node tree according to the actual Lucene queries. |
QueryParserWrapper.Operator | The default operator for parsing queries. | code | html |
MultiFieldQueryParserWrapper | This class behaves as the as the lucene 2.4 MultiFieldQueryParser class, but uses the new query parser interface instead of the old one. | code | html |
QueryParserUtil | This class defines utility methods to (help) parse query strings into Query objects. | code | html |
QueryParserWrapper | This class performs the query parsing using the new query parser implementation, but keeps the old QueryParser API. | code | html |
StandardQueryParser | This class is a helper that enables users to easily use the Lucene query parser. |
code | html |
The old Lucene query parser used to have only one class that performed all the parsing operations. In the new query parser structure, the parsing was divided in 3 steps: parsing (syntax), processing (semantic) and building.
The classes contained in the package org.apache.lucene.queryParser.standard are used to reproduce the same behavior as the old query parser.
Check org.apache.lucene.queryParser.standard.StandardQueryParser to quick start using the Lucene query parser.
There are 2 wrapper classes that extends QueryParser and MultiFieldQueryParser. The classes implement internally the new query parser structure. These 2 classes are deprecated and should only be used when there is a need to use the old query parser interface.