-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
elastic/elasticsearch-specification
#4291Description
🐛 Bug report
TypescriptError: Missing filter type cjk_bigram
Error message:
Type '"cjk_bigram"' is not assignable to type '"asciifolding" | "common_grams" | "condition" | "delimited_payload" | "edge_ngram" | "elision" | "fingerprint" | "hunspell" | "hyphenation_decompounder" | "keep_types" | "keep" | ... 35 more ... | "dictionary_decompounder"'.ts(2322)
To reproduce
import type { IndicesIndexSettingsAnalysis } from '@elastic/elasticsearch/lib/api/types';
const createAnalyzer = (): IndicesIndexSettingsAnalysis => {
return {
filter: {
han_bigram: {
type: 'cjk_bigram',
},
},
};
};
Expected behavior
cjk_bigram is recognized as filter type
Node.js version
18.19.0
@elastic/elasticsearch version
8.17.1
Operating system
Ubuntu 20.04
Any other relevant environment information
No response