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.
    • Method Detail

      • toString

        public java.lang.String toString​(java.lang.String field)
        Description copied from class: Query
        Prints a query to a string, with field assumed to be the default field and omitted.
        Overrides:
        toString in class SpanPositionRangeQuery