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, text
PLAINTEXT_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'/>
|
toQueryString
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 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()
QueryNodeImpl
toString
in interface QueryNode
toString
in class WildcardQueryNode
QueryNode.toString()
public PrefixWildcardQueryNode cloneTree() throws CloneNotSupportedException
QueryNode
cloneTree
in interface QueryNode
cloneTree
in class WildcardQueryNode
CloneNotSupportedException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.