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

[Course Search] Update search index when tags are changed #197

Closed
bradenmacdonald opened this issue Mar 7, 2024 · 0 comments
Closed

[Course Search] Update search index when tags are changed #197

bradenmacdonald opened this issue Mar 7, 2024 · 0 comments

Comments

@bradenmacdonald
Copy link
Contributor

bradenmacdonald commented Mar 7, 2024

"As a course author, I want to be able to search for course content using tags."

Builds on #195 and #196.

Requirements:

  1. When a user edits the tags of a course component in Studio (including a section, subsection, unit, problem, etc.), the corresponding document in the search index should be updated as well.
  2. If the "reindex all courses/libraries" command is currently running, make sure it doesn't undo these changes. (The changes should either (A) be applied to the new index [perhaps in addition to the old/current index] or (B) be queued until after the reindex is complete.)

Ideally:

  1. If the search engine (e.g. Meilisearch) is offline/down at the moment the change is made, the update will be queued; once the search engine is back online, the index will be updated.
  2. This would work for when tags are changed on (v2) library content items too.

Notes:

  • This Meilisearch API allows patching documents, so it can be used to update just the tags field without affecting the rest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant