public class QuotedFieldQueryNode extends FieldQueryNode
QuotedFieldQueryNode
represents phrase query. Example:
"life is great"begin, end, field, positionIncrement, text
PLAINTEXT_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: <field start='1' end='2' field='subject' text='foo'/>
|
getBegin, getEnd, getField, getFieldAsString, getPositionIncrement, getTermEscaped, getTermEscapeQuoted, getText, getTextAsString, getValue, setBegin, setEnd, setField, setPositionIncrement, setText, setValue
add, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, removeFromParent, set, setLeaf, setTag, unsetTag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeFromParent, set, setTag, unsetTag
public 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)
QueryNode
toQueryString
in interface QueryNode
toQueryString
in class FieldQueryNode
public String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class FieldQueryNode
QueryNode.toString()
public QuotedFieldQueryNode cloneTree() throws CloneNotSupportedException
QueryNode
cloneTree
in interface QueryNode
cloneTree
in class FieldQueryNode
CloneNotSupportedException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.