Package org.apache.lucene.queryparser.flexible.standard.processors
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.
-
ClassDescriptionThis processor verifies if
StandardQueryConfigHandler.ConfigurationKeys.ALLOW_LEADING_WILDCARD
is defined in theQueryConfigHandler
.This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.ANALYZER
is defined in theQueryConfigHandler
.This processor is used to apply the correctModifierQueryNode
toBooleanQueryNode
s children.This processor removes everyBooleanQueryNode
that contains only one child and returns this child.This processor iterates the query node tree looking for everyFieldableNode
that hasStandardQueryConfigHandler.ConfigurationKeys.BOOST
in its config.This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.PHRASE_SLOP
is defined in theQueryConfigHandler
.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.This processor makes sure thatStandardQueryConfigHandler.ConfigurationKeys.ANALYZER
is defined in theQueryConfigHandler
and injects this analyzer intoIntervalQueryNode
s.This processor converts everyWildcardQueryNode
that is "*:*" toMatchAllDocsQueryNode
.This processor is used to expand terms so the query looks for the same term in different fields.This processor instates the defaultMultiTermQuery.RewriteMethod
,MultiTermQuery.CONSTANT_SCORE_REWRITE
, for multi-term query nodes.ProcessesTermRangeQuery
s with open ranges.This processor removes invalidSlopQueryNode
objects in the query node tree.This processor is used to convertFieldQueryNode
s toPointRangeQueryNode
s.This processor is used to convertTermRangeQueryNode
s toPointRangeQueryNode
s.Processor for Regexp queries.This processor removes everyQueryNode
that is not a leaf and has not children.This pipeline has all the processors needed to process a query node tree, generated byStandardSyntaxParser
, already assembled.This processors processTermRangeQueryNode
s.TheStandardSyntaxParser
createsPrefixWildcardQueryNode
nodes which have values containing the prefixed wildcard.