Analyzer has not been configured in mappings

Created on 27 May 2022, over 2 years ago
Updated 4 May 2023, over 1 year ago

Problem/Motivation

When I save the index with ngram enabled I get this error:

Error message
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"analyzer [autocomplete_search] has not been configured in mappings"}],"type":"illegal_argument_exception","reason":"analyzer [autocomplete_search] has not been configured in mappings"},"status":400}

Steps to reproduce

Added a index for nodes and taxonomy terms
Enabled Enable ngram analyzer with the following options:
- Type: Edge ngram
- min ngram: 3
- max ngram: 20
Save and the error will appear.

Elasticsearch version: 7.10.2

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇪🇸Spain edurenye

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪Belgium pieterjandp

    I had the same issue. It is impossible to update the settings of an "open" existing Elasticsearch index, so it is not possible to add additional analyzers or update mappings.

    Everything worked fine after deleting and recreating the index (and unfortunately the views using this index as well).

Production build 0.71.5 2024