# Add a certain analyser to all indexes called blah\*

**URL:** <https://discuss.elastic.co/t/add-a-certain-analyser-to-all-indexes-called-blah/63461>\
**Category:** Elasticsearch\
**Created:** [October 20, 2016, 3:36am UTC](https://discuss.elastic.co/t/add-a-certain-analyser-to-all-indexes-called-blah/63461 "2016-10-20T03:36:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![somerandomguy](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@somerandomguy](https://discuss.elastic.co/u/somerandomguy)\
**Post date:** [October 20, 2016, 3:36am UTC](https://discuss.elastic.co/t/add-a-certain-analyser-to-all-indexes-called-blah/63461/1 "2016-10-20T03:36:23Z")

</div>

Hi. I have a requirement to add a certain email analyser to all indexes that start with the word 'blah'.

This is the email analyser: from here: [https://github.com/imotov/elasticsearch-test-scripts/blob/master/email\_default\_analyzer.sh](https://github.com/imotov/elasticsearch-test-scripts/blob/master/email_default_analyzer.sh)

```
 "settings" : {
    "index": {
      "analysis" :{
        "analyzer": {
          "default": {
            "type" : "custom",
            "tokenizer" : "uax_url_email",
            "filter" : ["standard", "lowercase", "stop"]
        }
      }
    }
  }
}

```

Does anybody have any examples that I could work off?

Thanks.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [October 20, 2016, 7:20am UTC](https://discuss.elastic.co/t/add-a-certain-analyser-to-all-indexes-called-blah/63461/2 "2016-10-20T07:20:46Z")

</div>

Hi @somerandomguy,

that's the perfect use case for [index templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html).

Daniel

---

<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:** [July 5, 2017, 10:11pm UTC](https://discuss.elastic.co/t/add-a-certain-analyser-to-all-indexes-called-blah/63461/3 "2017-07-05T22:11:00Z")

</div>


