BooleanQuery2ModifierNodeProcessor
insteadpublic class GroupQueryNodeProcessor extends Object implements QueryNodeProcessor
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
StandardQueryConfigHandler
Constructor and Description |
---|
GroupQueryNodeProcessor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
QueryConfigHandler |
getQueryConfigHandler()
Deprecated.
Returns the
QueryConfigHandler associated to the query tree if any,
otherwise it returns null |
QueryNode |
process(QueryNode queryTree)
Deprecated.
Processes a query node tree.
|
void |
setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Deprecated.
Sets the
QueryConfigHandler associated to the query tree. |
public QueryNode process(QueryNode queryTree) throws QueryNodeException
QueryNodeProcessor
null
.process
in interface QueryNodeProcessor
queryTree
- tree root nodeQueryNodeException
public QueryConfigHandler getQueryConfigHandler()
QueryNodeProcessor
QueryConfigHandler
associated to the query tree if any,
otherwise it returns null
getQueryConfigHandler
in interface QueryNodeProcessor
QueryConfigHandler
associated to the query tree if any,
otherwise it returns null
public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
QueryNodeProcessor
QueryConfigHandler
associated to the query tree.setQueryConfigHandler
in interface QueryNodeProcessor
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.