public class WildcardQueryNode extends FieldQueryNode
WildcardQueryNode
represents wildcard query This does not apply to
phrases. Examples: a*b*c Fl?w? m?ke*gbegin, end, field, positionIncrement, text
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields
Constructor and Description |
---|
WildcardQueryNode(CharSequence field,
CharSequence text,
int begin,
int end) |
WildcardQueryNode(FieldQueryNode fqn) |
Modifier and Type | Method and Description |
---|---|
WildcardQueryNode |
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, removeChildren, removeFromParent, set, setLeaf, setTag, unsetTag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeChildren, removeFromParent, set, setTag, unsetTag
public WildcardQueryNode(CharSequence field, CharSequence text, int begin, int end)
field
- - field nametext
- - value that contains one or more wild card characters (? or *)begin
- - position in the query stringend
- - position in the query stringpublic WildcardQueryNode(FieldQueryNode fqn)
public 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 WildcardQueryNode cloneTree() throws CloneNotSupportedException
QueryNode
cloneTree
in interface QueryNode
cloneTree
in class FieldQueryNode
CloneNotSupportedException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.