public class TokenizedPhraseQueryNode extends QueryNodeImpl implements FieldableNode
TokenizedPhraseQueryNode represents a node created by a code that
tokenizes/lemmatizes/analyzes.PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
TokenizedPhraseQueryNode() |
| 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 the field associated to the node and every node under it.
|
void |
setField(java.lang.CharSequence fieldName)
Associates the node to a 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:
|
add, add, allocate, clone, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTagpublic java.lang.String toString()
QueryNodeImpltoString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()public java.lang.CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodepublic QueryNode cloneTree() throws java.lang.CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class QueryNodeImpljava.lang.CloneNotSupportedExceptionpublic java.lang.CharSequence getField()
FieldableNodegetField in interface FieldableNodepublic void setField(java.lang.CharSequence fieldName)
FieldableNodesetField in interface FieldableNodefieldName - the field nameCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.