A {@link Scorer} which wraps another scorer and caches the score of the current document. Successive calls to {@link #Score()} will return the same result and will not invoke the wrapped Scorer's score() method, unless the current document has changed.
This class might be useful due to the changes done to the {@link Collector} 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 {@link Scorer} object, and might end up computing the score of a document more than once.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public class ScoreCachingWrappingScorer : Scorer
Visual Basic
Public Class ScoreCachingWrappingScorer _
	Inherits Scorer
Visual C++
public ref class ScoreCachingWrappingScorer : public Scorer

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..DocIdSetIterator
    Lucene.Net.Search..::..Scorer
      Lucene.Net.Search..::..ScoreCachingWrappingScorer

See Also