added Lucene upgrade reminder
This commit is contained in:
parent
12c7eeb262
commit
5e0b1621b4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue