Skip to content

Commit cbce0a6

Browse files
authored
fix exception message when validating the name of tokenizer(edgeNGram) (#113257)
1 parent c64c1fb commit cbce0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/CommonAnalysisPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public Map<String, AnalysisProvider<TokenizerFactory>> getTokenizers() {
366366
if (indexSettings.getIndexVersionCreated().onOrAfter(IndexVersions.V_8_0_0)) {
367367
throw new IllegalArgumentException(
368368
"The [edgeNGram] tokenizer name was deprecated in 7.6. "
369-
+ "Please use the tokenizer name to [edge_nGram] for indices created in versions 8 or higher instead."
369+
+ "Please use the tokenizer name to [edge_ngram] for indices created in versions 8 or higher instead."
370370
);
371371
} else if (indexSettings.getIndexVersionCreated().onOrAfter(IndexVersions.V_7_6_0)) {
372372
deprecationLogger.warn(

0 commit comments

Comments
 (0)