Class GroupQueryNodeProcessor
java.lang.Object
org.apache.lucene.queryparser.flexible.standard.processors.GroupQueryNodeProcessor
- All Implemented Interfaces:
QueryNodeProcessor
Deprecated.
The
If there is a
SyntaxParser
generates query node trees that consider the boolean operator precedence, but
Lucene current syntax does not support boolean precedence, so this processor
remove all the precedence and apply the equivalent modifier according to the
boolean operation defined on an specific query node. If there is a
GroupQueryNode in the query node tree, the query node
tree is not merged with the one above it.
Example: TODO: describe a good example to show how this processor works- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns theQueryConfigHandlerassociated to the query tree if any, otherwise it returnsnullDeprecated.Processes a query node tree.voidsetQueryConfigHandler(QueryConfigHandler queryConfigHandler) Deprecated.Sets theQueryConfigHandlerassociated to the query tree.
-
Constructor Details
-
GroupQueryNodeProcessor
public GroupQueryNodeProcessor()Deprecated.
-
-
Method Details
-
process
Deprecated.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- Parameters:
queryTree- tree root node- Returns:
- the processed query tree
- Throws:
QueryNodeException
-
getQueryConfigHandler
Deprecated.Description copied from interface:QueryNodeProcessorReturns theQueryConfigHandlerassociated to the query tree if any, otherwise it returnsnull- Specified by:
getQueryConfigHandlerin interfaceQueryNodeProcessor- Returns:
- the
QueryConfigHandlerassociated to the query tree if any, otherwise it returnsnull
-
setQueryConfigHandler
Deprecated.Description copied from interface:QueryNodeProcessorSets theQueryConfigHandlerassociated to the query tree.- Specified by:
setQueryConfigHandlerin interfaceQueryNodeProcessor
-
BooleanQuery2ModifierNodeProcessorinstead