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.useBooleanQuery2ModifierNodeProcessor
insteadTheSyntaxParser
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 aGroupQueryNode
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:
StandardQueryConfigHandler
-
-
Constructor Summary
Constructors Constructor Description GroupQueryNodeProcessor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description QueryConfigHandler
getQueryConfigHandler()
Deprecated.Returns theQueryConfigHandler
associated to the query tree if any, otherwise it returnsnull
QueryNode
process(QueryNode queryTree)
Deprecated.Processes a query node tree.void
setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Deprecated.Sets theQueryConfigHandler
associated to the query tree.
-
-
-
Method Detail
-
process
public QueryNode process(QueryNode queryTree) throws QueryNodeException
Deprecated.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
- Parameters:
queryTree
- tree root node- Returns:
- the processed query tree
- Throws:
QueryNodeException
-
getQueryConfigHandler
public QueryConfigHandler getQueryConfigHandler()
Deprecated.Description copied from interface:QueryNodeProcessor
Returns theQueryConfigHandler
associated to the query tree if any, otherwise it returnsnull
- Specified by:
getQueryConfigHandler
in interfaceQueryNodeProcessor
- Returns:
- the
QueryConfigHandler
associated to the query tree if any, otherwise it returnsnull
-
setQueryConfigHandler
public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Deprecated.Description copied from interface:QueryNodeProcessor
Sets theQueryConfigHandler
associated to the query tree.- Specified by:
setQueryConfigHandler
in interfaceQueryNodeProcessor
-
-