Lucene.Net.Search.TestScoreCachingWrappingScorer.SimpleScorer.Score C# (CSharp) Method

Score() public method

public Score ( ) : float
return float
			public override float Score()
			{
				// advance idx on purpose, so that consecutive calls to score will get
				// different results. This is to emulate computation of a score. If
				// ScoreCachingWrappingScorer is used, this should not be called more than
				// once per document.
			    return idx == scores.Length ? float.NaN : scores[idx++];
			}
TestScoreCachingWrappingScorer.SimpleScorer