org.apache.lucene.search.postingshighlight

Class Passage



  • public final class Passage
    extends Object
    Represents a passage (typically a sentence of the document).

    A passage contains getNumMatches() highlights from the query, and the offsets and query terms that correspond with each match.