# Diacritics and search

**URL:** <https://meta.discourse.org/t/diacritics-and-search/73744>\
**Category:** Feature\
**Created:** [11월 9, 2017, 6:57오전 UTC](https://meta.discourse.org/t/diacritics-and-search/73744 "2017-11-09T06:57:25Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [5월 1, 2018, 6:26오전 UTC](https://meta.discourse.org/t/diacritics-and-search/73744/13 "2018-05-01T06:26:58Z")

</div>

I think this is a feature request if anything, but looking at the doco by @MakaryGo I think running something like:

```plaintext
./launcher enter app
sudo postgres psql discourse
discourse=# CREATE EXTENSION unaccent;
discourse=# CREATE TEXT SEARCH CONFIGURATION en ( COPY = english);
discourse=# ALTER TEXT SEARCH CONFIGURATION en
        ALTER MAPPING FOR hword, hword_part, word
        WITH unaccent, english_stem;
discourse=# select to_tsvector('en','Hôtels de la Mer');
           to_tsvector           
---------------------------------
 'de':2 'hotel':1 'la':3 'mer':4
(1 row)

```

I do wonder @codinghorror if we should unaccent out-of-the-box or not.

---

_[View the full topic](https://meta.discourse.org/t/diacritics-and-search/73744)._
