make sure we use the new analyzer wrapper on 4.10

This commit is contained in:
Shay Banon 2014-07-04 16:06:18 +02:00
parent 1e0506b6a0
commit 04c573104f
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ import java.io.Reader;
*/
public abstract class SimpleAnalyzerWrapper extends AnalyzerWrapper {
static {
assert org.elasticsearch.Version.CURRENT.luceneVersion == org.apache.lucene.util.Version.LUCENE_4_9: "Remove this code once we upgrade to Lucene 4.10 (LUCENE-5803)";
}
public SimpleAnalyzerWrapper() {
super(new DelegatingReuseStrategy());
((DelegatingReuseStrategy) getReuseStrategy()).wrapper = this;