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.
-
ClassesClassDescriptionThis processor verifies if
StandardQueryConfigHandler.ConfigurationKeys.ALLOW_LEADING_WILDCARDis defined in theQueryConfigHandler.This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.ANALYZERis defined in theQueryConfigHandler.This processor is used to apply the correctModifierQueryNodetoBooleanQueryNodes children.This processor removes everyBooleanQueryNodethat contains only one child and returns this child.This processor iterates the query node tree looking for everyFieldableNodethat hasStandardQueryConfigHandler.ConfigurationKeys.BOOSTin its config.This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.PHRASE_SLOPis 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.ANALYZERis defined in theQueryConfigHandlerand injects this analyzer intoIntervalQueryNodes.This processor converts everyWildcardQueryNodethat 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_BLENDED_REWRITE, for multi-term query nodes.ProcessesTermRangeQuerys with open ranges.This processor removes invalidSlopQueryNodeobjects in the query node tree.This processor is used to convertFieldQueryNodes toPointRangeQueryNodes.This processor is used to convertTermRangeQueryNodes toPointRangeQueryNodes.Processor for Regexp queries.This processor removes everyQueryNodethat 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 processTermRangeQueryNodes.TheStandardSyntaxParsercreatesPrefixWildcardQueryNodenodes which have values containing the prefixed wildcard.