public void Flush() { Shuffle(); for (int i = 0; i < Buffered; ++i) { fakeScorer.SetDoc(DocIDs[i]); fakeScorer.SetFreq(Freqs[i]); fakeScorer.SetScore(Scores[i]); @in.Collect(fakeScorer.DocID()); } Buffered = 0; }
public override bool Score(Collector c, int maxDoc) { Debug.Assert(doc == -1); doc = 3000; FakeScorer fs = new FakeScorer(); fs.SetDoc(doc); fs.SetScore(1.0f); c.Scorer = fs; c.Collect(3000); return(false); }
public override bool Score(Collector c, int maxDoc) { Debug.Assert(doc == -1); doc = 3000; FakeScorer fs = new FakeScorer(); fs.SetDoc(doc); fs.SetScore(1.0f); c.Scorer = fs; c.Collect(3000); return false; }