|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.queryParser.core.nodes.QueryNodeImpl org.apache.lucene.queryParser.core.nodes.TokenizedPhraseQueryNode
public class TokenizedPhraseQueryNode
A TokenizedPhraseQueryNode
represents a node created by a code that
tokenizes/lemmatizes/analyzes.
Field Summary |
---|
Fields inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl |
---|
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields |
Constructor Summary | |
---|---|
TokenizedPhraseQueryNode()
|
Method Summary | |
---|---|
QueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method |
CharSequence |
getField()
Returns the field associated to the node and every node under it. |
void |
setField(CharSequence fieldName)
Associates the node to a field. |
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
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: |
Methods inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl |
---|
add, add, allocate, clone, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTag |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.lucene.queryParser.core.nodes.QueryNode |
---|
add, add, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isLeaf, set, setTag, setTag, unsetTag, unsetTag |
Constructor Detail |
---|
public TokenizedPhraseQueryNode()
Method Detail |
---|
public String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class QueryNodeImpl
QueryNode.toString()
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNode
toQueryString
in interface QueryNode
public QueryNode cloneTree() throws CloneNotSupportedException
QueryNode
cloneTree
in interface QueryNode
cloneTree
in class QueryNodeImpl
CloneNotSupportedException
public CharSequence getField()
FieldableNode
getField
in interface FieldableNode
public void setField(CharSequence fieldName)
FieldableNode
setField
in interface FieldableNode
fieldName
- the field name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |