public class AnyQueryNode extends AndQueryNode
AnyQueryNode represents an ANY operator performed on a list of
nodes.PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
AnyQueryNode(List<QueryNode> clauses,
CharSequence field,
int minimumMatchingElements) |
| 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
|
CharSequence |
getField()
returns null if the field was not specified
|
String |
getFieldAsString()
returns - null if the field was not specified
|
int |
getMinimumMatchingElements() |
void |
setField(CharSequence field) |
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:
|
add, add, allocate, clone, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTagpublic AnyQueryNode(List<QueryNode> clauses, CharSequence field, int minimumMatchingElements)
clauses - - the query nodes to be or'edpublic int getMinimumMatchingElements()
public CharSequence getField()
public String getFieldAsString()
public void setField(CharSequence field)
field - - the field to setpublic QueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class BooleanQueryNodeCloneNotSupportedExceptionpublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class AndQueryNodeQueryNode.toString()public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodetoQueryString in class AndQueryNode