public class BigramSpanRangeQuery extends SpanRangeQuery
Modifier and Type | Field and Description |
---|---|
private Set |
stopSet |
Constructor and Description |
---|
BigramSpanRangeQuery(Term lowerTerm,
Term upperTerm,
boolean inclusive,
int termLimit)
Constructs a span query selecting all terms greater than
lowerTerm but less than upperTerm . |
Modifier and Type | Method and Description |
---|---|
void |
setStopWords(Set set) |
protected boolean |
shouldSkipTerm(Term term)
Enables derived classes to skip certain terms in the index (e.g. stop
words, bi-grams, etc.)
|
combine, getField, getLowerTerm, getSpans, getTermLimit, getTerms, getUpperTerm, isInclusive, rewrite, toString
createWeight, getSpanRecording, setSpanRecording
public BigramSpanRangeQuery(Term lowerTerm, Term upperTerm, boolean inclusive, int termLimit)
lowerTerm
but less than upperTerm
.
There must be at least one term and either term may be null,
in which case there is no bound on that side, but if there are
two terms, both terms must be for the same field. Applies
a limit on the total number of terms matched.public void setStopWords(Set set)
protected boolean shouldSkipTerm(Term term)
SpanRangeQuery
shouldSkipTerm
in class SpanRangeQuery