Removing diacritics when tokenizing for search does not work retroactively?

Continuing the discussion from Discourse should ignore if a character is accented when doing a search:

@zogstrip implemented a change to search which should now ignore accents. I did an upgrade and tried it out but it does not seem to work. Is it possible that it will only work for new posts? If so, is it possible to apply the fix retroactively i.e. rebuild the PG index?

Or maybe I am doing something wrong? btw: I upgraded via upgrade manager UI.

Thanks!

We need to bump the search version to force a reindex, I guess it is overdue since we had multiple search improvements lately

Once we bump the version it will take a few days for index to rebuild

5 Likes

Isn’t there also a rake task if they want to do it manually in the meantime?

Yeah there is a search reindex task

1 Like

If you don’t want to wait for @sam’s changes, SSH into your server and then

cd /var/discourse
./launcher enter app
rake search:reindex
4 Likes

Wohoo, works like a charm, thanks so much! :heart:

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.