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;
}