Lucene.Net.Search.TestSubScorerFreqs.CountingCollector.Collect C# (CSharp) Method

Collect() public method

public Collect ( int doc ) : void
doc int
return void
            public override void Collect(int doc)
            {
                IDictionary<Query, float?> freqs = new Dictionary<Query, float?>();
                foreach (KeyValuePair<Query, Scorer> ent in SubScorers)
                {
                    Scorer value = ent.Value;
                    int matchId = value.DocID();
                    freqs[ent.Key] = matchId == doc ? value.Freq() : 0.0f;
                }
                DocCounts[doc + DocBase] = freqs;
                Other.Collect(doc);
            }