Interface IScorer
A IScorer is responsible for scoring a stream of tokens. These token scores can then be used to compute TextFragment scores.
Assembly: Lucene.Net.Highlighter.dll
Syntax
public interface IScorer
Properties
Name | Description |
---|---|
FragmentScore | Called when the Highlighter has no more tokens for the current fragment - the IScorer returns the weighting it has derived for the most recent fragment, typically based on the results of GetTokenScore(). |
Methods
Name | Description |
---|---|
GetTokenScore() | Called for each token in the current fragment. The Highlighter will
increment the |
Init(TokenStream) | Called to init the Scorer with a |
StartFragment(TextFragment) | Called when a new fragment is started for consideration. |