Class PassageScorer
Ranks passages found by PostingsHighlighter.
Each passage is scored as a miniature document within the document.
The final score is computed as norm
* ? (weight
* tf
).
The default implementation is norm
* BM25.
@lucene.experimental
Inheritance
Assembly: Lucene.Net.ICU.dll
Syntax
public class PassageScorer : object
Constructors
Name | Description |
---|---|
PassageScorer() | Creates PassageScorer with these default values:
|
PassageScorer(Single, Single, Single) | Creates PassageScorer with specified scoring parameters |
Methods
Name | Description |
---|---|
Norm(Int32) | Normalize a passage according to its position in the document. Typically passages towards the beginning of the document are more useful for summarizing the contents.
The default implementation is |
Tf(Int32, Int32) | Computes term weight, given the frequency within the passage and the passage's length. |
Weight(Int32, Int32) | Computes term importance, given its in-document statistics. |