Class GroupQueryNodeProcessor
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.standard.processors.GroupQueryNodeProcessor
-
- All Implemented Interfaces:
QueryNodeProcessor
public class GroupQueryNodeProcessor extends java.lang.Object implements QueryNodeProcessor
Deprecated.useBooleanQuery2ModifierNodeProcessorinsteadTheSyntaxParsergenerates 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 aGroupQueryNodein 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:
StandardQueryConfigHandler
-
-
Constructor Summary
Constructors Constructor Description GroupQueryNodeProcessor()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description QueryConfigHandlergetQueryConfigHandler()Deprecated.Returns theQueryConfigHandlerassociated to the query tree if any, otherwise it returnsnullQueryNodeprocess(QueryNode queryTree)Deprecated.Processes a query node tree.voidsetQueryConfigHandler(QueryConfigHandler queryConfigHandler)Deprecated.Sets theQueryConfigHandlerassociated to the query tree.
-
-
-
Method Detail
-
process
public QueryNode process(QueryNode queryTree) throws QueryNodeException
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
public QueryConfigHandler 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
public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Deprecated.Description copied from interface:QueryNodeProcessorSets theQueryConfigHandlerassociated to the query tree.- Specified by:
setQueryConfigHandlerin interfaceQueryNodeProcessor
-
-