mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
make sure we use the new analyzer wrapper on 4.10
This commit is contained in:
parent
1e0506b6a0
commit
04c573104f
@ -32,6 +32,10 @@ import java.io.Reader;
|
|||||||
*/
|
*/
|
||||||
public abstract class SimpleAnalyzerWrapper extends AnalyzerWrapper {
|
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() {
|
public SimpleAnalyzerWrapper() {
|
||||||
super(new DelegatingReuseStrategy());
|
super(new DelegatingReuseStrategy());
|
||||||
((DelegatingReuseStrategy) getReuseStrategy()).wrapper = this;
|
((DelegatingReuseStrategy) getReuseStrategy()).wrapper = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user