Class ScoreCachingWrappingScorer
A Scorer which wraps another scorer and caches the score of the current document. Successive calls to GetScore() will return the same result and will not invoke the wrapped Scorer's GetScore() method, unless the current document has changed.
This class might be useful due to the changes done to the ICollector interface, in which the score is not computed for a document by default, only if the collector requests it. Some collectors may need to use the score in several places, however all they have in hand is a Scorer object, and might end up computing the score of a document more than once.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class ScoreCachingWrappingScorer : Scorer
Constructors
Name | Description |
---|---|
ScoreCachingWrappingScorer(Scorer) | Creates a new instance by wrapping the given scorer. |
Properties
Name | Description |
---|---|
DocID | |
Freq |
Methods
Name | Description |
---|---|
Advance(Int32) | |
GetChildren() | |
GetCost() | |
GetScore() | |
NextDoc() |