org.cdlib.xtf.textEngine
Class XtfSpanRangeQuery

Object
  extended by Query
      extended by SpanQuery
          extended by SpanRangeQuery
              extended by BigramSpanRangeQuery
                  extended by 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 BigramSpanRangeQuery
setStopWords
 
Methods inherited from class SpanRangeQuery
combine, getField, getLowerTerm, getSpans, getTermLimit, getTerms, getUpperTerm, isInclusive, rewrite, toString
 
Methods inherited from class SpanQuery
createWeight, getSpanRecording, setSpanRecording
 
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
 

Constructor Detail

XtfSpanRangeQuery

public XtfSpanRangeQuery(Term lowerTerm,
                         Term upperTerm,
                         boolean inclusive,
                         int termLimit)
Method Detail

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