I'm installing Elastic search to use in Magento. But when I try to index the pages I'm…
- User
I'm installing Elastic search to use in Magento. But when I try to index the pages I'm getting the following error: Catalog Search indexer process unknown error: {errorby: [FORBIDDEN/12/index read-only / allow delete (api)];"}],typeby: [FORBIDDEN/12/index read-only / allow delete (api)];"},status
- Assistant
The error message "FORBIDDEN/12/index read-only / allow delete (api)" suggests that the Elasticsearch index is in read-only mode, which means that you cannot make changes to the index, including indexing new data. This is usually done to prevent accidental changes or data loss.
To resolve this issue, you'll need to log in to the Elasticsearch cluster and update the index settings to allow writes. Here's the basic process:
- Connect to the Elasticsearch cluster using a tool like curl or the Kibana Dev Tools Console.
- Check the current index settings using the following command:
bashGET /index_name/_settings- If the index is set to read-only, you can update the settings to allow writes by running the following command:
jsonPUT /index_name/_settings { "index.blocks.write": null }- Verify that the index is no longer read-only by running the following command:
bashGET /index_name/_settings
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.