From 5e0b1621b466877319e57d8a741a9dc0a3ecd4d5 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 7 Aug 2013 10:46:25 +0200 Subject: [PATCH] added Lucene upgrade reminder --- .../org/elasticsearch/common/lucene/search/TermFilter.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java b/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java index 9b0ef7e03ea..3f54cf13262 100644 --- a/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java +++ b/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java @@ -24,6 +24,8 @@ import org.apache.lucene.search.DocIdSet; import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.search.Filter; import org.apache.lucene.util.Bits; +import org.apache.lucene.util.Version; +import org.elasticsearch.common.lucene.Lucene; import java.io.IOException; @@ -32,6 +34,11 @@ import java.io.IOException; */ 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; public TermFilter(Term term) {