Class LowercaseExpandedTermsQueryNodeProcessor
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
-
- org.apache.lucene.queryparser.flexible.standard.processors.LowercaseExpandedTermsQueryNodeProcessor
-
- All Implemented Interfaces:
QueryNodeProcessor
public class LowercaseExpandedTermsQueryNodeProcessor extends QueryNodeProcessorImpl
This processor verifies ifStandardQueryConfigHandler.ConfigurationKeys.LOWERCASE_EXPANDED_TERMS
is defined in theQueryConfigHandler
. If it is and the expanded terms should be lower-cased, it looks for everyWildcardQueryNode
,FuzzyQueryNode
and children of aRangeQueryNode
and lower-case its term.
-
-
Constructor Summary
Constructors Constructor Description LowercaseExpandedTermsQueryNodeProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryNode
process(QueryNode queryTree)
Processes a query node tree.-
Methods inherited from class org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
getQueryConfigHandler, setQueryConfigHandler
-
-
-
-
Method Detail
-
process
public QueryNode process(QueryNode queryTree) throws QueryNodeException
Description copied from interface:QueryNodeProcessor
Processes a query node tree. It may return the same or another query tree. I should never returnnull
.- Specified by:
process
in interfaceQueryNodeProcessor
- Overrides:
process
in classQueryNodeProcessorImpl
- Parameters:
queryTree
- tree root node- Returns:
- the processed query tree
- Throws:
QueryNodeException
-
-