{"record":{"id":"252e7952374d2c2a","repo":"elastic/elasticsearch","slug":"the-edgengram-token-filter-name-was-deprecated-i","errorCode":null,"errorMessage":"The [edgeNGram] token filter name was deprecated in 6.4 and cannot be used in new indices. Please change the filter name to [edge_ngram] instead.","messagePattern":"The \\[edgeNGram\\] token filter name was deprecated in 6\\.4 and cannot be used in new indices\\. Please change the filter name to \\[edge_ngram\\] instead\\.","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/CommonAnalysisPlugin.java","lineNumber":245,"sourceCode":"        filters.put(\"cjk_width\", CJKWidthFilterFactory::new);\n        filters.put(\"classic\", ClassicFilterFactory::new);\n        filters.put(\"czech_stem\", CzechStemTokenFilterFactory::new);\n        filters.put(\"common_grams\", requiresAnalysisSettings(CommonGramsTokenFilterFactory::new));\n        filters.put(\n            \"condition\",\n            requiresAnalysisSettings((i, e, n, s) -> new ScriptedConditionTokenFilterFactory(i, n, s, scriptServiceHolder.get()))\n        );\n        filters.put(\"decimal_digit\", DecimalDigitFilterFactory::new);\n        filters.put(\"delimited_payload\", DelimitedPayloadTokenFilterFactory::new);\n        filters.put(\"dictionary_decompounder\", requiresAnalysisSettings(DictionaryCompoundWordTokenFilterFactory::new));\n        filters.put(\"dutch_stem\", DutchStemTokenFilterFactory::new);\n        filters.put(\"edge_ngram\", EdgeNGramTokenFilterFactory::new);\n        filters.put(\"edgeNGram\", (IndexSettings indexSettings, Environment environment, String name, Settings settings) -> {\n            return new EdgeNGramTokenFilterFactory(indexSettings, environment, name, settings) {\n                @Override\n                public TokenStream create(TokenStream tokenStream) {\n                    if (indexSettings.getIndexVersionCreated().onOrAfter(IndexVersions.V_8_0_0)) {\n                        throw new IllegalArgumentException(\n                            \"The [edgeNGram] token filter name was deprecated in 6.4 and cannot be used in new indices. \"\n                                + \"Please change the filter name to [edge_ngram] instead.\"\n                        );\n                    } else {\n                        deprecationLogger.warn(\n                            DeprecationCategory.ANALYSIS,\n                            \"edgeNGram_deprecation\",\n                            \"The [edgeNGram] token filter name is deprecated and will be removed in a future version. \"\n                                + \"Please change the filter name to [edge_ngram] instead.\"\n                        );\n                    }\n                    return super.create(tokenStream);\n                }\n\n            };\n        });\n        filters.put(\"elision\", requiresAnalysisSettings(ElisionTokenFilterFactory::new));\n        filters.put(\"fingerprint\", FingerprintTokenFilterFactory::new);","sourceCodeStart":227,"sourceCodeEnd":263,"githubUrl":"https://github.com/elastic/elasticsearch/blob/db6a809a667c081ca1dc7500389d26975573215f/modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/CommonAnalysisPlugin.java#L227-L263","documentation":"Error \"The [edgeNGram] token filter name was deprecated in 6.4 and cannot be used in new indices. Please change the filter name to [edge_ngram] instead.\" thrown in elastic/elasticsearch.","triggerScenarios":"Thrown at modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/CommonAnalysisPlugin.java:245 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"db6a809a667c081ca1dc7500389d26975573215f","analyzedAt":"2026-08-12T01:39:14.192Z","schemaVersion":2},"datasetVersion":"2026-08-12T08:17:17.861Z"}