{"record":{"id":"ddaf4807a8de2d77","repo":"elastic/elasticsearch","slug":"word-list-must-be-provided-for-name-either-as","errorCode":null,"errorMessage":"word_list must be provided for [{name}], either as a path to a file, or directly","messagePattern":"word_list must be provided for \\[(.+?)\\], either as a path to a file, or directly","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/AbstractCompoundWordTokenFilterFactory.java","lineNumber":45,"sourceCode":"    protected final int minSubwordSize;\n    protected final int maxSubwordSize;\n    protected final boolean onlyLongestMatch;\n    protected final CharArraySet wordList;\n    // TODO expose this parameter?\n    protected final boolean reuseChars;\n\n    protected AbstractCompoundWordTokenFilterFactory(IndexSettings indexSettings, Environment env, String name, Settings settings) {\n        super(name);\n\n        minWordSize = settings.getAsInt(\"min_word_size\", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);\n        minSubwordSize = settings.getAsInt(\"min_subword_size\", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);\n        maxSubwordSize = settings.getAsInt(\"max_subword_size\", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);\n        onlyLongestMatch = settings.getAsBoolean(\"only_longest_match\", false);\n        // TODO is the default of true correct? see: https://github.com/apache/lucene/pull/14278\n        reuseChars = true;\n        wordList = Analysis.getWordSet(env, settings, \"word_list\");\n        if (wordList == null) {\n            throw new IllegalArgumentException(\"word_list must be provided for [\" + name + \"], either as a path to a file, or directly\");\n        }\n    }\n\n    @Override\n    public TokenFilterFactory getSynonymFilter() {\n        return IDENTITY_FILTER;     // don't decompound synonym file\n    }\n}\n","sourceCodeStart":27,"sourceCodeEnd":54,"githubUrl":"https://github.com/elastic/elasticsearch/blob/db6a809a667c081ca1dc7500389d26975573215f/modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/AbstractCompoundWordTokenFilterFactory.java#L27-L54","documentation":"Error \"word_list must be provided for [{name}], either as a path to a file, or directly\" thrown in elastic/elasticsearch.","triggerScenarios":"Thrown at modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/AbstractCompoundWordTokenFilterFactory.java:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"db6a809a667c081ca1dc7500389d26975573215f","analyzedAt":"2026-08-12T01:39:14.192Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}