From ba1b87058016e9008e9c570e508dd968f471984a Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 1 Nov 2012 12:58:04 +0100 Subject: [PATCH] lucene 4: Upgraded CacheKeyFilter. --- .../index/cache/filter/support/CacheKeyFilter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/cache/filter/support/CacheKeyFilter.java b/src/main/java/org/elasticsearch/index/cache/filter/support/CacheKeyFilter.java index 6786128b65f..4d499169558 100644 --- a/src/main/java/org/elasticsearch/index/cache/filter/support/CacheKeyFilter.java +++ b/src/main/java/org/elasticsearch/index/cache/filter/support/CacheKeyFilter.java @@ -19,9 +19,11 @@ package org.elasticsearch.index.cache.filter.support; +import org.apache.lucene.index.AtomicReaderContext; import org.apache.lucene.index.IndexReader; import org.apache.lucene.search.DocIdSet; import org.apache.lucene.search.Filter; +import org.apache.lucene.util.Bits; import org.elasticsearch.common.Unicode; import java.io.IOException; @@ -86,8 +88,8 @@ public interface CacheKeyFilter { } @Override - public DocIdSet getDocIdSet(IndexReader reader) throws IOException { - return filter.getDocIdSet(reader); + public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException { + return filter.getDocIdSet(context, acceptDocs); } @Override