public class QuotedFieldQueryNode extends FieldQueryNode
QuotedFieldQueryNode represents phrase query. Example:
"life is great"begin, end, field, positionIncrement, textPLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
QuotedFieldQueryNode(java.lang.CharSequence field,
java.lang.CharSequence text,
int begin,
int end) |
| Modifier and Type | Method and Description |
|---|---|
QuotedFieldQueryNode |
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 escaper)
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:
|
getBegin, getEnd, getField, getFieldAsString, getPositionIncrement, getTermEscaped, getTermEscapeQuoted, getText, getTextAsString, getValue, setBegin, setEnd, setField, setPositionIncrement, setText, setValueadd, add, allocate, clone, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTagpublic QuotedFieldQueryNode(java.lang.CharSequence field,
java.lang.CharSequence text,
int begin,
int end)
field - - field nametext - - valuebegin - - position in the query stringend - - position in the query stringpublic java.lang.CharSequence toQueryString(EscapeQuerySyntax escaper)
QueryNodetoQueryString in interface QueryNodetoQueryString in class FieldQueryNodepublic java.lang.String toString()
QueryNodeImpltoString in interface QueryNodetoString in class FieldQueryNodeQueryNode.toString()public QuotedFieldQueryNode cloneTree() throws java.lang.CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class FieldQueryNodejava.lang.CloneNotSupportedExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.