# La suppression des diacritiques lors de la tokenisation pour la recherche ne fonctionne-t-elle pas rétroactivement ?

**URL:** https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497
**Category:** Support
**Created:** [Août 23, 2018, 6:01 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497 "2018-08-23T18:01:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)
#### Post date: [Août 23, 2018, 6:01 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/1 "2018-08-23T18:01:58Z")

</div>

Continuing the discussion from [Discourse should ignore if a character is accented when doing a search](https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198/12):

@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!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Août 23, 2018, 9:16 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/2 "2018-08-23T21:16:20Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Août 23, 2018, 9:22 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/4 "2018-08-23T21:22:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Août 23, 2018, 9:22 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/5 "2018-08-23T21:22:55Z")

</div>

Yeah there is a search reindex task

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Août 23, 2018, 9:24 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/6 "2018-08-23T21:24:26Z")

</div>

> [@danekhollas](#):
>
> If so, is it possible to apply the fix retroactively i.e. rebuild the PG index?

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

```plaintext
cd /var/discourse
./launcher enter app
rake search:reindex

```

---

<div class="post-metadata">

### Author: ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)
#### Post date: [Août 23, 2018, 10:09 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/7 "2018-08-23T22:09:39Z")

</div>

Wohoo, works like a charm, thanks so much! ❤

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Septembre 22, 2018, 10:15 UTC](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/8 "2018-09-22T22:15:03Z")

</div>

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