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 Detail

      • term

        protected final Term term
      • termStates

        protected final TermStates termStates
    • Constructor Detail

      • 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