Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Adds to the score for a fragment based on its tokens More...
Inherited by Lucene.Net.Search.Highlight.QueryScorer, and Lucene.Net.Search.Highlight.QueryTermScorer.
Public Member Functions | |
TokenStream | Init (TokenStream tokenStream) |
Called to init the Scorer with a TokenStream. You can grab references to the attributes you are interested in here and access them from getTokenScore(). | |
void | StartFragment (TextFragment newFragment) |
Called when a new fragment is started for consideration. | |
float | GetTokenScore () |
Called for each token in the current fragment. The Highlighter will increment the TokenStream passed to init on every call. | |
Properties | |
float | FragmentScore [get] |
Adds to the score for a fragment based on its tokens
Definition at line 24 of file IScorer.cs.
float Lucene.Net.Search.Highlight.IScorer.GetTokenScore | ( | ) |
Called for each token in the current fragment. The Highlighter will increment the TokenStream passed to init on every call.
summary> Called when the Highlighter has no more tokens for the current fragment - the Scorer returns the weighting it has derived for the most recent fragment, typically based on the results of getTokenScore().
Implemented in Lucene.Net.Search.Highlight.QueryScorer, and Lucene.Net.Search.Highlight.QueryTermScorer.
TokenStream Lucene.Net.Search.Highlight.IScorer.Init | ( | TokenStream | tokenStream | ) |
Called to init the Scorer with a TokenStream. You can grab references to the attributes you are interested in here and access them from getTokenScore().
tokenStream | the TokenStream that will be scored. |
IOException |
Implemented in Lucene.Net.Search.Highlight.QueryScorer, and Lucene.Net.Search.Highlight.QueryTermScorer.
void Lucene.Net.Search.Highlight.IScorer.StartFragment | ( | TextFragment | newFragment | ) |
Called when a new fragment is started for consideration.
newFragment | the fragment that will be scored next |
Implemented in Lucene.Net.Search.Highlight.QueryScorer, and Lucene.Net.Search.Highlight.QueryTermScorer.
|
get |
Definition at line 60 of file IScorer.cs.