public override void Search(Weight weight, Filter filter, Collector collector) { if (filter == null) { for (int i = 0; i < subReaders.Length; i++) { // search each subreader collector.SetNextReader(subReaders[i], docStarts[i]); Scorer scorer = weight.Scorer(subReaders[i], !collector.AcceptsDocsOutOfOrder(), true); if (scorer != null) { scorer.Score(collector); } } } else { for (int i = 0; i < subReaders.Length; i++) { // search each subreader collector.SetNextReader(subReaders[i], docStarts[i]); SearchWithFilter(subReaders[i], weight, filter, collector); } } }
public override void SetNextReader(IndexReader reader, int base_Renamed) { collector.SetNextReader(reader, base_Renamed); this.docBase = base_Renamed; }
public override void SetNextReader(IndexReader reader, int docBase) { c.SetNextReader(reader, docBase); }