Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Incorrect use of updateable flag in Elasticsearch synonyms documentation #120865

Open
ganiamine opened this issue Jan 26, 2025 · 0 comments · May be fixed by #120866
Open

[DOCS] Incorrect use of updateable flag in Elasticsearch synonyms documentation #120865

ganiamine opened this issue Jan 26, 2025 · 0 comments · May be fixed by #120866
Labels
needs:triage Requires assignment of a team area label

Comments

@ganiamine
Copy link

The documentation for Apply synonyms at index or search time contains an error in the example code for adding my_analyzer as a search analyzer.

The example includes the updateable flag in the field mapping for title, which results in the following error when used:

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "unknown parameter [updateable] on mapper [title] of type [text]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping: unknown parameter [updateable] on mapper [title] of type [text]",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "unknown parameter [updateable] on mapper [title] of type [text]"
    }
  },
  "status": 400
}

To resolve the issue, the updateable flag should be applied to the token filter instead of the field mapping.

Suggested Fix:
Update the example to remove the updateable flag from the field mapping and ensure the token filter includes the correct configuration.

@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:triage Requires assignment of a team area label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants