Namespace Lucene.Net.QueryParsers.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.
Classes
AllowLeadingWildcardProcessor
This processor verifies if
ALLOW_LEADING_WILDCARD is defined in the
Query
AnalyzerQueryNodeProcessor
This processor verifies if ANALYZER
is defined in the Querynull
, it looks for every Field
If the analyzer return only one term, the returned term is set to the
Field
If the analyzer return more than one term, a Tokenized
If no term is returned by the analyzer a No
BooleanQuery2ModifierNodeProcessor
This processor is used to apply the correct Modifier
The Standard
(A AND B OR C AND D)
ist treated like
(+A +B +C +D)
.
This processor walks through the query node tree looking for
Boolean
BooleanSingleChildOptimizationQueryNodeProcessor
This processor removes every Boolean
BoostQueryNodeProcessor
This processor iterates the query node tree looking for every
IFieldable
DefaultPhraseSlopQueryNodeProcessor
This processor verifies if PHRASE_SLOP
is defined in the Query
FuzzyQueryNodeProcessor
This processor iterates the query node tree looking for every
Fuzzy
GroupQueryNodeProcessor
The ISyntax
If there is a Group
Example: TODO: describe a good example to show how this processor works
LowercaseExpandedTermsQueryNodeProcessor
This processor verifies if
LOWERCASE_EXPANDED_TERMS is defined in the
Query
MatchAllDocsQueryNodeProcessor
This processor converts every Wildcard
MultiFieldQueryNodeProcessor
This processor is used to expand terms so the query looks for the same term in different fields. It also boosts a query based on its field.
This processor looks for every IFieldable
MultiTermRewriteMethodProcessor
This processor instates the default
NumericQueryNodeProcessor
This processor is used to convert Field
Note that Field
NumericRangeQueryNodeProcessor
This processor is used to convert Term
OpenRangeQueryNodeProcessor
Processes
PhraseSlopQueryNodeProcessor
This processor removes invalid Slop
RemoveEmptyNonLeafQueryNodeProcessor
This processor removes every IQuery
This processor is used at the end of a pipeline to avoid invalid query node
tree structures like a Group
StandardQueryNodeProcessorPipeline
This pipeline has all the processors needed to process a query node tree,
generated by Standard
The order they are assembled affects the results.
This processor pipeline was designed to work with
Standard
The result query node tree can be used to build a
TermRangeQueryNodeProcessor
This processors process TermdateFormat
. If the values cannot be
parsed to a date value, it will only create the Term
If a LOCALE is defined in the
Query
If a DATE_RESOLUTION is defined and the
null
it will also be used to parse the
date value.
WildcardQueryNodeProcessor
The Standard