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

Endpoints to request reindexing of a library deleted from ElasticSearch #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abaevbog
Copy link
Contributor

No description provided.

- added boolean column deindexed_from_es to the library table.
It should be set to true when the library is deleted from ES.
- GET /fulltext/reindex returns reindexingStatus that's one of
indexed, indexing or deindexed. 'deindexed' if deindexed_from_es is true.
'indexed' if # of indexed items = # of indexable attachments, and
'indexing' otherwise.
- POST /fulltext/reindex adds an event to SQS that triggers full-text-indexer
lambda that handles reindeixing and sets deindexed_from_es = false.
Only possible if deindexed_from_es is initially true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant