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, textPLAINTEXT_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, setValueadd, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, removeChildren, removeFromParent, set, setLeaf, setTag, unsetTagequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeChildren, removeFromParent, set, setTag, unsetTagpublic 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)
QueryNodetoQueryString in interface QueryNodetoQueryString in class FieldQueryNodepublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class FieldQueryNodeQueryNode.toString()public WildcardQueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class FieldQueryNodeCloneNotSupportedExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.