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

Recreate Elasticsearch indices individually #3293

Open
tilovillwock opened this issue Dec 13, 2023 · 0 comments
Open

Recreate Elasticsearch indices individually #3293

tilovillwock opened this issue Dec 13, 2023 · 0 comments

Comments

@tilovillwock
Copy link
Collaborator

tilovillwock commented Dec 13, 2023

Reindexing all of the data in Elasticsearch due to changes to the underlying data model has become very time-consuming. As such we should add an additional endpoint to trigger the process only for select indices in order to save some time during development and deployment.

Right now we can call

/api/search/recreate

to recreate all indices (data_packages, related_publications, instruments, etc).

I'd would be helpful to be able to call, e.g.

/api/search/recreate/data_packages,related_publications

in order to trigger the reindexing of data packages and related publications.

Additionally we should investigate if we can add a log message to indicate that the reindexing process has completed or is still ongoing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants