# Index and search accented text

**URL:** <https://discuss.elastic.co/t/index-and-search-accented-text/93392>\
**Category:** Elasticsearch\
**Created:** [July 17, 2017, 12:44pm UTC](https://discuss.elastic.co/t/index-and-search-accented-text/93392 "2017-07-17T12:44:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahina123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahina123/32/20108_2.png) [@sahina123](https://discuss.elastic.co/u/sahina123)\
**Post date:** [July 17, 2017, 12:44pm UTC](https://discuss.elastic.co/t/index-and-search-accented-text/93392/1 "2017-07-17T12:44:08Z")

</div>

I am indexing all the names on a web page with characters with accents like "José". I want to be able to search the this name with "Jose" and "José".

How should I set up my index mapping and analyzer(s) for a simple index with one field "name"?

I tried this:

```
PUT foo
{
  "settings": {
        "analysis": {
            "analyzer": {
                "folding": {
                    "tokenizer": "standard",
                    "filter": ["lowercase", "asciifolding"]
                }
            }
        }
    },
    "mappings" : {
        "user" : {
            "properties" : {
                "name" : { "type" : "text" }
            }
        }
    }
}

PUT foo/user/1
{
    "name" : "José Sebastián"
}

PUT foo/user/2
{
    "name" : "Jose Rondon"
}

GET /foo/_search?q=name:jose
GET /foo/_search?q=name:josé

```

When I search with "jose" or "josé", I want both of them returned.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 14, 2017, 12:44pm UTC](https://discuss.elastic.co/t/index-and-search-accented-text/93392/2 "2017-08-14T12:44:39Z")

</div>

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