public class MultiPhraseQueryNode extends QueryNodeImpl implements FieldableNode
MultiPhraseQueryNode indicates that its children should be used to
build a MultiPhraseQuery instead of PhraseQuery.PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
MultiPhraseQueryNode() |
| 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 the field associated to the node and every node under it.
|
void |
setField(CharSequence fieldName)
Associates the node to a 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 String toString()
QueryNodeImpltoString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodepublic QueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class QueryNodeImplCloneNotSupportedExceptionpublic CharSequence getField()
FieldableNodegetField in interface FieldableNodepublic void setField(CharSequence fieldName)
FieldableNodesetField in interface FieldableNodefieldName - the field name