Class SpanTermQuery


public class SpanTermQuery extends SpanQuery
Matches spans containing a term. This should not be used for terms that are indexed at position Integer.MAX_VALUE.
  • Field Details

    • term

      protected final Term term
    • termStates

      protected final TermStates termStates
  • Constructor Details

    • SpanTermQuery

      public SpanTermQuery(Term term)
      Construct a SpanTermQuery matching the named term's spans.
    • SpanTermQuery

      public SpanTermQuery(Term term, TermStates termStates)
      Expert: Construct a SpanTermQuery matching the named term's spans, using the provided TermStates
  • Method Details