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(CharSequence field,
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
|
CharSequence |
toQueryString(EscapeQuerySyntax escaper)
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:
|
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(CharSequence field, CharSequence text, int begin, int end)
field - - field nametext - - valuebegin - - position in the query stringend - - position in the query stringpublic CharSequence toQueryString(EscapeQuerySyntax escaper)
QueryNodetoQueryString in interface QueryNodetoQueryString in class FieldQueryNodepublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class FieldQueryNodeQueryNode.toString()public QuotedFieldQueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class FieldQueryNodeCloneNotSupportedException