public class AnyQueryNode extends AndQueryNode
AnyQueryNode represents an ANY operator performed on a list of
nodes.PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
AnyQueryNode(java.util.List<QueryNode> clauses,
java.lang.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
|
java.lang.CharSequence |
getField()
returns null if the field was not specified
|
java.lang.String |
getFieldAsString()
returns - null if the field was not specified
|
int |
getMinimumMatchingElements() |
void |
setField(java.lang.CharSequence field) |
java.lang.CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser
|
java.lang.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, unsetTagpublic AnyQueryNode(java.util.List<QueryNode> clauses, java.lang.CharSequence field, int minimumMatchingElements)
clauses - - the query nodes to be or'edpublic int getMinimumMatchingElements()
public java.lang.CharSequence getField()
public java.lang.String getFieldAsString()
public void setField(java.lang.CharSequence field)
field - - the field to setpublic QueryNode cloneTree() throws java.lang.CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class BooleanQueryNodejava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
QueryNodeImpltoString in interface QueryNodetoString in class AndQueryNodeQueryNode.toString()public java.lang.CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodetoQueryString in class AndQueryNodeCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.