added Lucene upgrade reminder

This commit is contained in:
Martijn van Groningen 2013-08-07 10:46:25 +02:00
parent 12c7eeb262
commit 5e0b1621b4
1 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,8 @@ import org.apache.lucene.search.DocIdSet;
import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.search.Filter; import org.apache.lucene.search.Filter;
import org.apache.lucene.util.Bits; import org.apache.lucene.util.Bits;
import org.apache.lucene.util.Version;
import org.elasticsearch.common.lucene.Lucene;
import java.io.IOException; import java.io.IOException;
@ -32,6 +34,11 @@ import java.io.IOException;
*/ */
public class TermFilter extends Filter { public class TermFilter extends Filter {
static {
// Remove this class and TermsFilterTests when upgrading to Lucene 4.5
assert Lucene.VERSION == Version.LUCENE_44;
}
private final Term term; private final Term term;
public TermFilter(Term term) { public TermFilter(Term term) {