# How to add Multiple analyzers to specific field

**URL:** <https://discuss.elastic.co/t/how-to-add-multiple-analyzers-to-specific-field/151871>\
**Category:** Elasticsearch\
**Created:** [October 10, 2018, 3:02pm UTC](https://discuss.elastic.co/t/how-to-add-multiple-analyzers-to-specific-field/151871 "2018-10-10T15:02:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anveshdd](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@anveshdd](https://discuss.elastic.co/u/anveshdd)\
**Post date:** [October 10, 2018, 3:02pm UTC](https://discuss.elastic.co/t/how-to-add-multiple-analyzers-to-specific-field/151871/1 "2018-10-10T15:02:45Z")

</div>

Hi,

I am working on ES 6.x i want to apply multiple analyzers to specific field. Any suggestions that i can implement.

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [October 10, 2018, 3:18pm UTC](https://discuss.elastic.co/t/how-to-add-multiple-analyzers-to-specific-field/151871/2 "2018-10-10T15:18:31Z")

</div>

HI Anvesh,

For applying multiple analysers, I would recommend that you check out "multi fields". This allows you to analyze a field in as many ways as you'd like.

There's an example here:  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.4/multi-fields.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/multi-fields.html)

Where the `city` field is analyzed as both `text` and `keyword`. You can do the same thing with analyzers:

```auto
PUT my_index
{
  "mappings": {
    "_doc": {
      "properties": {
        "myfield": {
          "type": "text",
          "analyzer": "standard",
          "fields": {
            "english": { 
              "type": "text",
              "analyzer": "english"
            }
          }
        }
      }
    }
  }
}

```

In that case, the `myfield` field will be analyzed with two different analyzers ("standard" and "english")

---

<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:** [November 7, 2018, 3:31pm UTC](https://discuss.elastic.co/t/how-to-add-multiple-analyzers-to-specific-field/151871/3 "2018-11-07T15:31:28Z")

</div>

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