Package org.apache.lucene.queryparser.flexible.standard.processors
Lucene Query Node Processors.
Lucene Query Node Processors
The package org.apache.lucene.queryparser.flexible.standard.processors contains every processor needed to assembly a pipeline that modifies the query node tree according to the actual Lucene queries.
These processors are already assembled correctly in the StandardQueryNodeProcessorPipeline.
-
Class Summary Class Description AllowLeadingWildcardProcessor This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.ALLOW_LEADING_WILDCARD
is defined in theQueryConfigHandler
.AnalyzerQueryNodeProcessor This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.ANALYZER
is defined in theQueryConfigHandler
.BooleanQuery2ModifierNodeProcessor This processor is used to apply the correctModifierQueryNode
toBooleanQueryNode
s children.BooleanSingleChildOptimizationQueryNodeProcessor This processor removes everyBooleanQueryNode
that contains only one child and returns this child.BoostQueryNodeProcessor This processor iterates the query node tree looking for everyFieldableNode
that hasStandardQueryConfigHandler.ConfigurationKeys.BOOST
in its config.DefaultPhraseSlopQueryNodeProcessor This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.PHRASE_SLOP
is defined in theQueryConfigHandler
.FuzzyQueryNodeProcessor This processor iterates the query node tree looking for everyFuzzyQueryNode
, when this kind of node is found, it checks on the query configuration forStandardQueryConfigHandler.ConfigurationKeys.FUZZY_CONFIG
, gets the fuzzy prefix length and default similarity from it and set to the fuzzy node.IntervalQueryNodeProcessor This processor makes sure thatStandardQueryConfigHandler.ConfigurationKeys.ANALYZER
is defined in theQueryConfigHandler
and injects this analyzer intoIntervalQueryNode
s.MatchAllDocsQueryNodeProcessor This processor converts everyWildcardQueryNode
that is "*:*" toMatchAllDocsQueryNode
.MultiFieldQueryNodeProcessor This processor is used to expand terms so the query looks for the same term in different fields.MultiTermRewriteMethodProcessor This processor instates the defaultMultiTermQuery.RewriteMethod
,MultiTermQuery.CONSTANT_SCORE_BLENDED_REWRITE
, for multi-term query nodes.OpenRangeQueryNodeProcessor ProcessesTermRangeQuery
s with open ranges.PhraseSlopQueryNodeProcessor This processor removes invalidSlopQueryNode
objects in the query node tree.PointQueryNodeProcessor This processor is used to convertFieldQueryNode
s toPointRangeQueryNode
s.PointRangeQueryNodeProcessor This processor is used to convertTermRangeQueryNode
s toPointRangeQueryNode
s.RegexpQueryNodeProcessor Processor for Regexp queries.RemoveEmptyNonLeafQueryNodeProcessor This processor removes everyQueryNode
that is not a leaf and has not children.StandardQueryNodeProcessorPipeline This pipeline has all the processors needed to process a query node tree, generated byStandardSyntaxParser
, already assembled.TermRangeQueryNodeProcessor This processors processTermRangeQueryNode
s.WildcardQueryNodeProcessor TheStandardSyntaxParser
createsPrefixWildcardQueryNode
nodes which have values containing the prefixed wildcard.