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, setValue
add, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, unsetTag
public 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.QueryNode
toQueryString
in class org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode
public String toString()
toString
in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
toString
in class org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode
public ProtectedQueryNode cloneTree() throws CloneNotSupportedException
cloneTree
in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
cloneTree
in class org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode
CloneNotSupportedException
Copyright © 2014. All rights reserved.