public class BooleanQueryNode extends QueryNodeImpl
BooleanQueryNode represents a list of elements which do not have an
explicit boolean operator defined between them. It can be used to express a
boolean query that intends to use the default boolean operator.PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
BooleanQueryNode(java.util.List<QueryNode> clauses) |
| 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 |
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 BooleanQueryNode(java.util.List<QueryNode> clauses)
clauses - - the query nodes to be and'edpublic java.lang.String toString()
QueryNodeImpltoString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()public java.lang.CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodepublic QueryNode cloneTree() throws java.lang.CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class QueryNodeImpljava.lang.CloneNotSupportedExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.