filtered collector should set the next reader on the wrapped collector

This commit is contained in:
kimchy 2011-02-11 00:34:20 +02:00
parent 44b06bee3b
commit 260aab21fd
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ public class FilteredCollector extends Collector {
}
@Override public void setNextReader(IndexReader reader, int docBase) throws IOException {
collector.setNextReader(reader, docBase);
docSet = DocSets.convert(reader, filter.getDocIdSet(reader));
}