Skip to content

Update search index after tag update #258

Closed

Description

@jesperhodge

After hitting the API's update endpoint and rename a tag, I can see that when I go to a library - search contents - click the "Tags" filter, it displays the old version, not the renamed one. That's coming from the facet-search endpoint. That tells me that the meilisearch search index does not get automatically updated when we rename a tag, so we will need to look at the backend to see how to update this index.

It seems that meilisearch is probably not connected to redis, at least according to this diagram.

Image

Activity

  1. jmakowski1123 commented on Apr 15, 2026

    @jmakowski1123

    I'm not sure how I test this?

  2. jesperhodge commented on Apr 16, 2026

    @jesperhodge
    Author

    Apologies, @jmakowski1123 !
    I'm used to writing testing instructions directly in the pull requests for reviewers. Given that you need this information, I will copy those instructions into the ticket going forward.

    Testing Instructions

    • Go to Course-Authoring
    • Go to the libraries tab
    • Go to the detail view of one library
    • Choose a library block
    • Click on "manage tags"
    • Apply a tag to the block that you want to test renaming on -> click save
    • At the top, under "All content", you find a search bar. Right next to the search input field, there is a filter dropdown called "Tags". Open it
    • When you expand the taxonomy of the tag you added, you should find that tag there now - with its current name
    • In a separate tab, go to Course Authoring -> Taxonomies
    • Open the detail view for the taxonomy whose tag you applied
    • Find the tag in the table and click "Rename"
    • Rename the tag to something else, and click save
    • Go back to the tab where you have the library with the tag applied
    • Reload the page
    • In the "Tags" filter dropdown, now you should see the renamed tag under its new name, not its old name
  3. jmakowski1123 commented on Apr 16, 2026

    @jmakowski1123

    This is working as expected

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

Metadata

Metadata

Assignees

Labels

verawood

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions