Class DefaultPhraseSlopQueryNodeProcessor
java.lang.Object
org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
org.apache.lucene.queryparser.flexible.standard.processors.DefaultPhraseSlopQueryNodeProcessor
- All Implemented Interfaces:
QueryNodeProcessor
This processor verifies if
StandardQueryConfigHandler.ConfigurationKeys.PHRASE_SLOP
is defined in the QueryConfigHandler. If it is, it looks for every
TokenizedPhraseQueryNode and MultiPhraseQueryNode that does
not have any SlopQueryNode applied to it and creates an
SlopQueryNode and apply to it. The new SlopQueryNode has the
same slop value defined in the configuration. - See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
getQueryConfigHandler, setQueryConfigHandler
-
Constructor Details
-
DefaultPhraseSlopQueryNodeProcessor
public DefaultPhraseSlopQueryNodeProcessor()
-
-
Method Details
-
process
Description copied from interface:QueryNodeProcessorProcesses a query node tree. It may return the same or another query tree. I should never returnnull.- Specified by:
processin interfaceQueryNodeProcessor- Overrides:
processin classQueryNodeProcessorImpl- Parameters:
queryTree- tree root node- Returns:
- the processed query tree
- Throws:
QueryNodeException
-