Class Passage

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Passage
    extends OffsetRange
    A passage is a fragment of source text, scored and possibly with a list of sub-offsets (markers) to be highlighted. The markers can be overlapping or nested, but they're always contained within the passage.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<OffsetRange> markers  
      • Fields inherited from class org.apache.lucene.search.matchhighlight.OffsetRange

        from, to
    • Constructor Summary

      Constructors 
      Constructor Description
      Passage​(int from, int to, java.util.List<OffsetRange> markers)  
    • Field Detail

    • Constructor Detail

      • Passage

        public Passage​(int from,
                       int to,
                       java.util.List<OffsetRange> markers)
    • Method Detail

      • slice

        public OffsetRange slice​(int from,
                                 int to)
        Passages can't be sliced as it could split previously determined highlight markers.
        Overrides:
        slice in class OffsetRange