Closed chrisribal closed 2 years ago
As of ElasticSearch 8.*, deleting indices using wildcard or _all queries is disabled by default:
_all
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
$indexManager->all()
elastic-adapter
Original Bug Report: https://github.com/babenkoivan/elastic-migrations/issues/38
Hey @chrisribal, doesn't elastic:migrate:refresh work for you?
elastic:migrate:refresh
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
As of ElasticSearch 8.*, deleting indices using wildcard or
_all
queries is disabled by default: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 inelastic-adapter
: https://github.com/babenkoivan/elastic-adapter/pull/24Original Bug Report: https://github.com/babenkoivan/elastic-migrations/issues/38