lucene 4: Upgraded CacheKeyFilter.

This commit is contained in:
Martijn van Groningen 2012-11-01 12:58:04 +01:00 committed by Shay Banon
parent 3298ad2235
commit ba1b870580
1 changed files with 4 additions and 2 deletions

View File

@ -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