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

Allow to re-create the index from the redis stream #196

Merged
merged 4 commits into from
Sep 5, 2024

Conversation

eikek
Copy link
Member

@eikek eikek commented Sep 4, 2024

Exposes an endpoint on the search-provision service to drop the current index and re-read everything from the redis stream. This allows to re-create the entire index from the raw data.

@eikek eikek added the enhancement New feature or request label Sep 4, 2024
@eikek eikek force-pushed the recreate-index-api branch from 3672aee to 471268d Compare September 4, 2024 15:14
@eikek eikek linked an issue Sep 5, 2024 that may be closed by this pull request
@eikek eikek force-pushed the recreate-index-api branch 2 times, most recently from 7bafbd6 to b67df1a Compare September 5, 2024 07:03
This deletes all entity documents (partial and full), but keeps other
internal documents.
It must be able to track processes so they can be restarted
@eikek eikek force-pushed the recreate-index-api branch from b67df1a to bb6f735 Compare September 5, 2024 07:21
@eikek eikek marked this pull request as ready for review September 5, 2024 07:29
Sometimes it is necessary to re-create the entire index from the raw
data (for example, when solr schema changes happen). This is done by
reading the redis stream from the beginning (or from a given message).

The endpoint is only available from the provisioning process and not
from the api.
@eikek eikek force-pushed the recreate-index-api branch from bb6f735 to 376b3c7 Compare September 5, 2024 08:48
@eikek eikek merged commit e00be11 into development Sep 5, 2024
3 checks passed
@eikek eikek deleted the recreate-index-api branch September 5, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recreate the index from an api
1 participant