babenkoivan / elastic-migrations

Elasticsearch migrations for Laravel
MIT License
188 stars 32 forks source link

Delete indices one by one #39

Closed chrisribal closed 2 years ago

chrisribal commented 2 years ago

As of ElasticSearch 8.*, deleting indices using wildcard or _all queries is disabled by default:

By default, this parameter does not support wildcards (*) or _all. To use wildcards or _all, set the action.destructive_requires_name cluster setting to false. https://www.elastic.co/guide/en/elasticsearch/reference/8.0/indices-delete-index.html

Therefore it would be a better way, to delete all indices one by one.

This PR uses the $indexManager->all() method of the following PR in elastic-adapter: https://github.com/babenkoivan/elastic-adapter/pull/24

Original Bug Report: https://github.com/babenkoivan/elastic-migrations/issues/38

babenkoivan commented 2 years ago

Hey @chrisribal, doesn't elastic:migrate:refresh work for you?

github-actions[bot] commented 2 years ago

This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days