Removing diacritics when tokenizing for search does not work retroactively?


(Daniel Hollas) #1

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!


(Sam Saffron) #2

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


(Régis Hanol) #4

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


Discourse should ignore if a character is accented when doing a search
(Sam Saffron) #5

Yeah there is a search reindex task


(Régis Hanol) #6

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

(Daniel Hollas) #7

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


(system) #8

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