Class SrndPrefixQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- org.apache.lucene.queryparser.surround.query.SimpleTerm
-
- org.apache.lucene.queryparser.surround.query.SrndPrefixQuery
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<SimpleTerm>
,DistanceSubQuery
public class SrndPrefixQuery extends SimpleTerm
Query that matches String prefixes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.queryparser.surround.query.SimpleTerm
SimpleTerm.MatchingTermVisitor
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
theEmptyLcnQuery
-
-
Constructor Summary
Constructors Constructor Description SrndPrefixQuery(java.lang.String prefix, boolean quoted, char truncator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Term
getLucenePrefixTerm(java.lang.String fieldName)
java.lang.String
getPrefix()
char
getSuffixOperator()
java.lang.String
toStringUnquoted()
void
visitMatchingTerms(IndexReader reader, java.lang.String fieldName, SimpleTerm.MatchingTermVisitor mtv)
-
Methods inherited from class org.apache.lucene.queryparser.surround.query.SimpleTerm
addSpanQueries, compareTo, distanceSubQueryNotAllowed, getFieldOperator, getQuote, makeLuceneQueryFieldNoBoost, toString
-
Methods inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
clone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isFieldsSubQueryAcceptable, isWeighted, makeLuceneQueryField, setWeight
-
-
-
-
Method Detail
-
getPrefix
public java.lang.String getPrefix()
-
getSuffixOperator
public char getSuffixOperator()
-
getLucenePrefixTerm
public Term getLucenePrefixTerm(java.lang.String fieldName)
-
toStringUnquoted
public java.lang.String toStringUnquoted()
- Specified by:
toStringUnquoted
in classSimpleTerm
-
visitMatchingTerms
public void visitMatchingTerms(IndexReader reader, java.lang.String fieldName, SimpleTerm.MatchingTermVisitor mtv) throws java.io.IOException
- Specified by:
visitMatchingTerms
in classSimpleTerm
- Throws:
java.io.IOException
-
-