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 committed Sep 20, 2024
1 parent dd3ceb0 commit 36c2cf1
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 36c2cf1

Please sign in to comment.