-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Closed
Copy link
Labels
:Search Relevance/Suggesters"Did you mean" and suggestions as you type"Did you mean" and suggestions as you type>docsGeneral docs changesGeneral docs changesTeam:DocsMeta label for docs teamMeta label for docs teamTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearch
Description
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.
Metadata
Metadata
Assignees
Labels
:Search Relevance/Suggesters"Did you mean" and suggestions as you type"Did you mean" and suggestions as you type>docsGeneral docs changesGeneral docs changesTeam:DocsMeta label for docs teamMeta label for docs teamTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearch