public class ProtectedQueryNode
extends org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode
ProtectedQueryNode represents a term in which all special
characters are escaped.
For example, the colon in 'http://acme.org' is not interpreted as a twig
query operator, and the expression is not converted into a TwigQueryNode.
| Constructor and Description |
|---|
ProtectedQueryNode(CharSequence field,
CharSequence text,
int begin,
int end) |
| Modifier and Type | Method and Description |
|---|---|
ProtectedQueryNode |
cloneTree() |
CharSequence |
toQueryString(org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax escaper) |
String |
toString() |
getBegin, 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, set, setLeaf, setTag, unsetTagpublic ProtectedQueryNode(CharSequence field, CharSequence text, int begin, int end)
public CharSequence toQueryString(org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax escaper)
toQueryString in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNodetoQueryString in class org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNodepublic String toString()
toString in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNodetoString in class org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNodepublic ProtectedQueryNode cloneTree() throws CloneNotSupportedException
cloneTree in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNodecloneTree in class org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNodeCloneNotSupportedExceptionCopyright © 2014. All rights reserved.