public class GroupQueryNode extends QueryNodeImpl
GroupQueryNode
represents a location where the original user typed
real parenthesis on the query string. This class is useful for queries like:
a) a AND b OR c b) ( a AND b) OR c
Parenthesis might be used to define the boolean operation precedence.PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields
Constructor and Description |
---|
GroupQueryNode(QueryNode query)
This QueryNode is used to identify parenthesis on the original query string
|
Modifier and Type | Method and Description |
---|---|
QueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree
when you call the cloneTree() method
|
QueryNode |
getChild() |
void |
setChild(QueryNode child) |
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser
|
String |
toString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
|
add, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, removeChildren, removeFromParent, set, setLeaf, setTag, unsetTag
public GroupQueryNode(QueryNode query)
public QueryNode getChild()
public String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class QueryNodeImpl
QueryNode.toString()
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNode
public QueryNode cloneTree() throws CloneNotSupportedException
QueryNode
cloneTree
in interface QueryNode
cloneTree
in class QueryNodeImpl
CloneNotSupportedException
public void setChild(QueryNode child)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.