Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
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);
            }
Ejemplo n.º 3
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;
 }