Class SpanFirstQuery

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class SpanFirstQuery
    extends SpanPositionRangeQuery
    Matches spans near the beginning of a field.

    This class is a simple extension of SpanPositionRangeQuery in that it assumes the start to be zero and only checks the end boundary.

    • Constructor Detail

      • SpanFirstQuery

        public SpanFirstQuery​(SpanQuery match,
                              int end)
        Construct a SpanFirstQuery matching spans in match whose end position is less than or equal to end.