Class Passage
Represents a passage (typically a sentence of the document).
A passage contains Num
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
Inherited Members
Namespace: Lucene.Net.Search.PostingsHighlight
Assembly: Lucene.Net.ICU.dll
Syntax
public sealed class Passage
Properties
| Improve this Doc View SourceEndOffset
Gets the end index (exclusive) of the passage in the
original content: always >= Start
Declaration
public int EndOffset { get; }
Property Value
Type | Description |
---|---|
System. |
MatchEnds
End offsets of the term matches, corresponding with Match
Only Num
Declaration
public IReadOnlyList<int> MatchEnds { get; }
Property Value
Type | Description |
---|---|
System. |
MatchStarts
Start offsets of the term matches, in increasing order.
Only Num
Declaration
public IReadOnlyList<int> MatchStarts { get; }
Property Value
Type | Description |
---|---|
System. |
MatchTerms
BytesRef (term text) of the matches, corresponding with Match
Only Num
Declaration
public IReadOnlyList<BytesRef> MatchTerms { get; }
Property Value
Type | Description |
---|---|
System. |
NumMatches
Number of term matches available in
Match
Declaration
public int NumMatches { get; }
Property Value
Type | Description |
---|---|
System. |
Score
Passage's score.
Declaration
public float Score { get; }
Property Value
Type | Description |
---|---|
System. |
StartOffset
Gets the start index (inclusive) of the passage in the original content: always >= 0.
Declaration
public int StartOffset { get; }
Property Value
Type | Description |
---|---|
System. |