dzhw / metadatamanagement

Metadatamanagement (MDM) - Data Search for Higher Education Research and Science Studies
https://metadata.fdz.dzhw.eu
GNU Affero General Public License v3.0
25 stars 9 forks source link

Recreate Elasticsearch indices individually #3293

Closed tilovillwock closed 2 months ago

tilovillwock commented 11 months ago

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.