public class TwigQueryNode
extends org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl
implements org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode
ChildQueryNode
or a DescendantQueryNode
.Modifier and Type | Field and Description |
---|---|
protected CharSequence |
field
The twig query's field
|
protected CharSequence |
root
The root query's node boolean expression.
|
Constructor and Description |
---|
TwigQueryNode() |
Modifier and Type | Method and Description |
---|---|
CharSequence |
getField() |
CharSequence |
getRoot()
Retrieves the root query's node boolean expression.
|
boolean |
hasRoot()
Return true if this twig query node has a root query
|
void |
setField(CharSequence fieldName) |
void |
setRoot(CharSequence text)
Sets the root query's node boolean expression.
|
CharSequence |
toQueryString(org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax escapeSyntaxParser) |
String |
toString() |
add, add, allocate, clone, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, unsetTag
protected CharSequence field
protected CharSequence root
public CharSequence toQueryString(org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax escapeSyntaxParser)
toQueryString
in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
public CharSequence getRoot()
public void setRoot(CharSequence text)
public boolean hasRoot()
public CharSequence getField()
getField
in interface org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode
public void setField(CharSequence fieldName)
setField
in interface org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode
public String toString()
toString
in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
toString
in class org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl
Copyright © 2014. All rights reserved.