# Discourse should ignore if a character is accented when doing a search

**URL:** https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198
**Category:** Feature
**Tags:** search, completed
**Created:** [6월 19, 2018, 10:52오전 UTC](https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198 "2018-06-19T10:52:24Z")
**Posts on this page:** 1
**Showing post:** 51

<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: [10월 23, 2018, 5:41오후 UTC](https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198/51 "2018-10-23T17:41:35Z")

</div>

Thanks Sam for merging! Just upgraded our forum and it works well.

> [@danekhollas](#):
>
> 1. diacritics is not elided from the query string itself, i.e. if I search with a word including diacritics, I will not find anything
> 2. diacritics is not stripped from post titles

I am quite confused about the second issue. I could not reproduce it in my dev environment, but it was definitely a problem on our production forum, even after upgrade. (and it was affecting new post titles as well) I eventually fixed it by rebuilding the Postgre index. i.e.

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

```

@sam we’ve [already discussed triggering the search index rebuild](https://meta.discourse.org/t/removing-diacritics-when-tokenizing-for-search-does-not-work-retroactively/95497/4) for everyone, but I am not sure that it happened. Perhaps now is a good time after my fix was merged.

FYI for others: outstanding issues related to search w/o diacritics:

1. does not work for in-topic search
2. diacritics should not be stripped from excerpts on the search page
  - need to make sure that “word-boldening” on search page works correctly after 2. is fixed

---

_[View the full topic](https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198)._
