Class Passage
Represents a passage (typically a sentence of the document).
A passage contains NumMatches highlights from the query, and the offsets and query terms that correspond with each match. @lucene.experimental
Inheritance
Assembly: Lucene.Net.ICU.dll
Syntax
public sealed class Passage : object
Properties
Name | Description |
---|---|
EndOffset | Gets the end index (exclusive) of the passage in the original content: always >= StartOffset |
MatchEnds | End offsets of the term matches, corresponding with MatchStarts. Only NumMatches are valid. Note that its possible that an end offset could exceed beyond the bounds of the passage EndOffset, if the Analyzer produced a term which spans a passage boundary. |
MatchStarts | Start offsets of the term matches, in increasing order. Only NumMatches are valid. Note that these offsets are absolute (not relative to StartOffset). |
MatchTerms | BytesRef (term text) of the matches, corresponding with MatchStarts. Only NumMatches are valid. |
NumMatches | Number of term matches available in MatchStarts, MatchEnds, MatchTerms |
Score | Passage's score. |
StartOffset | Gets the start index (inclusive) of the passage in the original content: always >= 0. |