Skip to content

Commit

Permalink
fix exception message when validating the name of tokenizer(edgeNGram) (
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonghyeonKO authored Sep 26, 2024
1 parent c64c1fb commit cbce0a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public Map<String, AnalysisProvider<TokenizerFactory>> getTokenizers() {
if (indexSettings.getIndexVersionCreated().onOrAfter(IndexVersions.V_8_0_0)) {
throw new IllegalArgumentException(
"The [edgeNGram] tokenizer name was deprecated in 7.6. "
+ "Please use the tokenizer name to [edge_nGram] for indices created in versions 8 or higher instead."
+ "Please use the tokenizer name to [edge_ngram] for indices created in versions 8 or higher instead."
);
} else if (indexSettings.getIndexVersionCreated().onOrAfter(IndexVersions.V_7_6_0)) {
deprecationLogger.warn(
Expand Down

0 comments on commit cbce0a6

Please sign in to comment.