Searchkick: Elasticsearch not indexing "FORBIDDEN/12/index read-only"? Searchkick: Elasticsearch not indexing "FORBIDDEN/12/index read-only"? elasticsearch elasticsearch

Searchkick: Elasticsearch not indexing "FORBIDDEN/12/index read-only"?


This solution from salihsagdilekon on https://github.com/ankane/searchkick/issues/1040 resolved this same issue for me:

curl -XPUT -H "Content-Type: application/json" > http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'


I had the same issue today, and the following worked for me:

Model.search_index.clean_indices