Class MatchHighlighter.QueryOffsetRange

  • All Implemented Interfaces:
    java.lang.Cloneable
    Enclosing class:
    MatchHighlighter

    public static class MatchHighlighter.QueryOffsetRange
    extends OffsetRange
    An OffsetRange of a match, together with the source query that caused it.
    • Field Detail

      • query

        public final Query query
    • Constructor Detail

      • QueryOffsetRange

        QueryOffsetRange​(Query query,
                         int from,
                         int to)
    • Method Detail

      • slice

        public MatchHighlighter.QueryOffsetRange slice​(int from,
                                                       int to)
        Description copied from class: OffsetRange
        Returns a sub-range of this range (a copy). Subclasses should override and return an appropriate type covariant so that payloads are not lost.
        Overrides:
        slice in class OffsetRange