Currently performing an Elasticsearch upgrade from v1.7 to v7.1. While refactoring our Java code, I came across this Elasticsearch v1.7 code:
private static final TokenizerFactory STANDARD_TOKENIZER_FACTORY = PreBuiltTokenizers.STANDARD.getTokenizerFactory(Version.V_1_7_3); org.apache.lucene.analysis.Tokenizer tokenizer = STANDARD_TOKENIZER_FACTORY.create(new StringReader(terms.toLowerCase()));
Can this be recreated using the Java Elasticsearch 7.1 APIs? I've tried to no avail. Looks like
PreBuiltTokenizers.STANDARD.getTokenizerFactory() has been deprecated in v7.