20 namespace Lucene.Net.Search
43 this.reqScorer = reqScorer;
44 this.optScorer = optScorer;
47 public override int NextDoc()
52 public override int Advance(
int target)
54 return reqScorer.Advance(target);
57 public override int DocID()
59 return reqScorer.DocID();
68 public override float Score()
70 int curDoc = reqScorer.DocID();
71 float reqScore = reqScorer.Score();
72 if (optScorer == null)
77 int optScorerDoc = optScorer.DocID();
78 if (optScorerDoc < curDoc && (optScorerDoc = optScorer.Advance(curDoc)) == NO_MORE_DOCS)
84 return optScorerDoc == curDoc?reqScore + optScorer.Score():reqScore;