Skip to content

TypescriptError: Missing filter type cjk_bigram #2726

@yukha-dw

Description

@yukha-dw

🐛 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions