FieldQueryNode
should be used instead.@Deprecated public class ParametricQueryNode extends FieldQueryNode
ParametricQueryNode represents LE, LT, GE, GT, EQ, NE query.
Example: date >= "2009-10-10" OR price = 200| Modifier and Type | Class and Description |
|---|---|
static class |
ParametricQueryNode.CompareOperator
Deprecated.
|
begin, end, field, positionIncrement, textPLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
ParametricQueryNode(CharSequence field,
ParametricQueryNode.CompareOperator comp,
CharSequence value,
int begin,
int end)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ParametricQueryNode |
cloneTree()
Deprecated.
Recursive clone the QueryNode tree The tags are not copied to the new tree
when you call the cloneTree() method
|
CharSequence |
getOperand()
Deprecated.
|
ParametricQueryNode.CompareOperator |
getOperator()
Deprecated.
|
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
Deprecated.
convert to a query string understood by the query parser
|
String |
toString()
Deprecated.
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode:
|
getBegin, getEnd, getField, getFieldAsString, getPositionIncrement, getTermEscaped, getTermEscapeQuoted, getText, getTextAsString, getValue, setBegin, setEnd, setField, setPositionIncrement, setText, setValueadd, add, allocate, clone, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTagpublic ParametricQueryNode(CharSequence field, ParametricQueryNode.CompareOperator comp, CharSequence value, int begin, int end)
field - - field namecomp - - CompareOperatorvalue - - text valuebegin - - position in the query stringend - - position in the query stringpublic CharSequence getOperand()
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodetoQueryString in class FieldQueryNodepublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class FieldQueryNodeQueryNode.toString()public ParametricQueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class FieldQueryNodeCloneNotSupportedExceptionpublic ParametricQueryNode.CompareOperator getOperator()