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_WILDCARDis defined in theQueryConfigHandler.AnalyzerQueryNodeProcessor This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.ANALYZERis defined in theQueryConfigHandler.BooleanQuery2ModifierNodeProcessor This processor is used to apply the correctModifierQueryNodetoBooleanQueryNodes children.BooleanSingleChildOptimizationQueryNodeProcessor This processor removes everyBooleanQueryNodethat contains only one child and returns this child.BoostQueryNodeProcessor This processor iterates the query node tree looking for everyFieldableNodethat hasStandardQueryConfigHandler.ConfigurationKeys.BOOSTin its config.DefaultPhraseSlopQueryNodeProcessor This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.PHRASE_SLOPis 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.ANALYZERis defined in theQueryConfigHandlerand injects this analyzer intoIntervalQueryNodes.MatchAllDocsQueryNodeProcessor This processor converts everyWildcardQueryNodethat 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 ProcessesTermRangeQuerys with open ranges.PhraseSlopQueryNodeProcessor This processor removes invalidSlopQueryNodeobjects in the query node tree.PointQueryNodeProcessor This processor is used to convertFieldQueryNodes toPointRangeQueryNodes.PointRangeQueryNodeProcessor This processor is used to convertTermRangeQueryNodes toPointRangeQueryNodes.RegexpQueryNodeProcessor Processor for Regexp queries.RemoveEmptyNonLeafQueryNodeProcessor This processor removes everyQueryNodethat 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 processTermRangeQueryNodes.WildcardQueryNodeProcessor TheStandardSyntaxParsercreatesPrefixWildcardQueryNodenodes which have values containing the prefixed wildcard.