|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.queryParser.standard.processors.GroupQueryNodeProcessor
public class GroupQueryNodeProcessor
The 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 Summary | |
---|---|
GroupQueryNodeProcessor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupQueryNodeProcessor()
Method Detail |
---|
public QueryNode process(QueryNode queryTree) throws QueryNodeException
QueryNodeProcessor
null
.
process
in interface QueryNodeProcessor
queryTree
- tree root node
QueryNodeException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |