public 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. 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 worksStandardQueryConfigHandler| Constructor and Description |
|---|
GroupQueryNodeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
QueryConfigHandler |
getQueryConfigHandler()
Returns the
QueryConfigHandler associated to the query tree if any,
otherwise it returns null |
QueryNode |
process(QueryNode queryTree)
Processes a query node tree.
|
void |
setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Sets the
QueryConfigHandler associated to the query tree. |
public QueryNode process(QueryNode queryTree) throws QueryNodeException
QueryNodeProcessornull.process in interface QueryNodeProcessorqueryTree - tree root nodeQueryNodeExceptionpublic QueryConfigHandler getQueryConfigHandler()
QueryNodeProcessorQueryConfigHandler associated to the query tree if any,
otherwise it returns nullgetQueryConfigHandler in interface QueryNodeProcessorQueryConfigHandler associated to the query tree if any,
otherwise it returns nullpublic void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
QueryNodeProcessorQueryConfigHandler associated to the query tree.setQueryConfigHandler in interface QueryNodeProcessor