From 260aab21fdd46fc375780e1f39135a2ab6a8f813 Mon Sep 17 00:00:00 2001 From: kimchy Date: Fri, 11 Feb 2011 00:34:20 +0200 Subject: [PATCH] filtered collector should set the next reader on the wrapped collector --- .../elasticsearch/common/lucene/search/FilteredCollector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/FilteredCollector.java b/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/FilteredCollector.java index 1453db1cf88..2981a937151 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/FilteredCollector.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/FilteredCollector.java @@ -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)); }