Lucene.Net.Search.TestScoreCachingWrappingScorer.ScoreCachingCollector.Collect C# (CSharp) Method

Collect() public method

public Collect ( int doc ) : void
doc int
return void
			public override void  Collect(int doc)
			{
				// just a sanity check to avoid IOOB.
				if (idx == mscores.Length)
				{
					return ;
				}
				
				// just call score() a couple of times and record the score.
				mscores[idx] = scorer.Score();
				mscores[idx] = scorer.Score();
				mscores[idx] = scorer.Score();
				++idx;
			}
			
TestScoreCachingWrappingScorer.ScoreCachingCollector