org.cdlib.xtf.textEngine
Class XtfSpanRangeQuery
Object
Query
SpanQuery
SpanRangeQuery
BigramSpanRangeQuery
XtfSpanRangeQuery
- All Implemented Interfaces:
- Serializable, Cloneable
public class XtfSpanRangeQuery
- extends BigramSpanRangeQuery
Matches spans containing terms within a specified range. Performs extra
filtering to make sure bi-grams are not matched, and that start/end of
field marks are not matched.
- See Also:
- Serialized Form
Constructor Summary |
XtfSpanRangeQuery(Term lowerTerm,
Term upperTerm,
boolean inclusive,
int termLimit)
|
Method Summary |
protected boolean |
shouldSkipTerm(Term term)
Enables derived classes to skip certain terms in the index (e.g. stop
words, bi-grams, etc.) |
Methods inherited from class Query |
clone, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XtfSpanRangeQuery
public XtfSpanRangeQuery(Term lowerTerm,
Term upperTerm,
boolean inclusive,
int termLimit)
shouldSkipTerm
protected boolean shouldSkipTerm(Term term)
- Description copied from class:
SpanRangeQuery
- Enables derived classes to skip certain terms in the index (e.g. stop
words, bi-grams, etc.) Default implementation doesn't skip any terms.
- Overrides:
shouldSkipTerm
in class BigramSpanRangeQuery