Class PrecedenceQueryParser
java.lang.Object
org.apache.lucene.queryparser.flexible.core.QueryParserHelper
org.apache.lucene.queryparser.flexible.standard.StandardQueryParser
org.apache.lucene.queryparser.flexible.precedence.PrecedenceQueryParser
- All Implemented Interfaces:
CommonQueryParserConfiguration
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>.
EXPERT: This class extends StandardQueryParser
, but uses PrecedenceQueryNodeProcessorPipeline
instead of StandardQueryNodeProcessorPipeline
to
process the query tree.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.lucene.queryparser.flexible.standard.StandardQueryParser
getAllowLeadingWildcard, getAnalyzer, getDateResolution, getDateResolutionMap, getDefaultOperator, getEnablePositionIncrements, getFieldsBoost, getFuzzyMinSim, getFuzzyPrefixLength, getLocale, getMultiFields, getMultiTermRewriteMethod, getPhraseSlop, getPointsConfigMap, getTimeZone, parse, setAllowLeadingWildcard, setAnalyzer, setDateResolution, setDateResolutionMap, setDefaultOperator, setEnablePositionIncrements, setFieldsBoost, setFuzzyMinSim, setFuzzyPrefixLength, setLocale, setMultiFields, setMultiTermRewriteMethod, setPhraseSlop, setPointsConfigMap, setTimeZone, toString
Methods inherited from class org.apache.lucene.queryparser.flexible.core.QueryParserHelper
getQueryBuilder, getQueryConfigHandler, getQueryNodeProcessor, getSyntaxParser, setQueryBuilder, setQueryConfigHandler, setQueryNodeProcessor, setSyntaxParser
-
Constructor Details
-
PrecedenceQueryParser
public PrecedenceQueryParser()- See Also:
-
PrecedenceQueryParser
- See Also:
-