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:
Cloneable,Comparable<SimpleTerm>,DistanceSubQuery
public class SrndPrefixQuery extends SimpleTerm
-
-
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(String prefix, boolean quoted, char truncator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.index.TermgetLucenePrefixTerm(String fieldName)StringgetPrefix()chargetSuffixOperator()protected voidsuffixToString(StringBuilder r)StringtoStringUnquoted()voidvisitMatchingTerms(org.apache.lucene.index.IndexReader reader, 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, getWeight, getWeightOperator, getWeightString, isFieldsSubQueryAcceptable, isWeighted, makeLuceneQueryField, setWeight, weightToString
-
-
-
-
Constructor Detail
-
SrndPrefixQuery
public SrndPrefixQuery(String prefix, boolean quoted, char truncator)
-
-
Method Detail
-
getPrefix
public String getPrefix()
-
getSuffixOperator
public char getSuffixOperator()
-
getLucenePrefixTerm
public org.apache.lucene.index.Term getLucenePrefixTerm(String fieldName)
-
toStringUnquoted
public String toStringUnquoted()
- Specified by:
toStringUnquotedin classSimpleTerm
-
suffixToString
protected void suffixToString(StringBuilder r)
- Overrides:
suffixToStringin classSimpleTerm
-
visitMatchingTerms
public void visitMatchingTerms(org.apache.lucene.index.IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv) throws IOException- Specified by:
visitMatchingTermsin classSimpleTerm- Throws:
IOException
-
-