Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated indexes are not cleaned up #376

Open
roborourke opened this issue Feb 8, 2022 · 0 comments
Open

Outdated indexes are not cleaned up #376

roborourke opened this issue Feb 8, 2022 · 0 comments
Labels
bug Existing functionality isn't behaving as expected

Comments

@roborourke
Copy link
Contributor

In some cases, specifically after upgrading from a version of ElasticPress prior to the introduction of indexables it can leave old indexes behind that it no longer recognises and that are not removed by reindexing. They are benign until we need to upgrade ES as currently the old indexes have to be manually removed.

It may be easier to do the manual removal if there aren't too many but might be worth adding a cleanup routine to the wp altis migrate command.

It should remove any indexes that are:

  • not the global aliases
  • begin with ep-
  • are not in the list of indexes given by wp elasticpress get-indexes
@roborourke roborourke added the bug Existing functionality isn't behaving as expected label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality isn't behaving as expected
Projects
None yet
Development

No branches or pull requests

1 participant