public class PrefixWildcardQueryNode extends WildcardQueryNode
PrefixWildcardQueryNode represents wildcardquery that matches abc*
or *. This does not apply to phrases, this is a special case on the original
lucene parser. TODO: refactor the code to remove this special case from the
parser. and probably do it on a Processorbegin, end, field, positionIncrement, textPLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
PrefixWildcardQueryNode(CharSequence field,
CharSequence text,
int begin,
int end) |
PrefixWildcardQueryNode(FieldQueryNode fqn) |
| Modifier and Type | Method and Description |
|---|---|
PrefixWildcardQueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree
when you call the cloneTree() method
|
String |
toString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
|
toQueryStringgetBegin, 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 PrefixWildcardQueryNode(CharSequence field, CharSequence text, int begin, int end)
field - - field nametext - - value including the wildcardbegin - - position in the query stringend - - position in the query stringpublic PrefixWildcardQueryNode(FieldQueryNode fqn)
public String toString()
QueryNodeImpltoString in interface QueryNodetoString in class WildcardQueryNodeQueryNode.toString()public PrefixWildcardQueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class WildcardQueryNodeCloneNotSupportedExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.