# Elasticsearch index template merge confuse

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-template-merge-confuse/45885>\
**Category:** Elasticsearch\
**Created:** [March 31, 2016, 7:47am UTC](https://discuss.elastic.co/t/elasticsearch-index-template-merge-confuse/45885 "2016-03-31T07:47:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roketyyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roketyyang/32/8783_2.png) [@roketyyang](https://discuss.elastic.co/u/roketyyang)\
**Post date:** [March 31, 2016, 7:47am UTC](https://discuss.elastic.co/t/elasticsearch-index-template-merge-confuse/45885/1 "2016-03-31T07:47:24Z")

</div>

I create a template "logstash-users":

> {  
> "logstash-users": {  
> "order": 1,  
> "template": "logstash-users",  
> "settings": {  
> "index": {  
> "refresh\_interval": "5s"  
> }  
> },  
> "mappings": {  
> "_default_": {  
> "dynamic\_templates": [  
> {  
> "string\_fields": {  
> "mapping": {  
> "fielddata": {  
> "format": "disabled"  
> },  
> "index": "not\_analyzed",  
> "omit\_norms": true,  
> "type": "string"  
> },  
> "match\_mapping\_type": "string",  
> "match": "\*",  
> "fields": {  
> "raw": {  
> "ignore\_above": 0  
> }  
> }  
> }  
> }  
> ],  
> "\_all": {  
> "enabled": false  
> }  
> }  
> },  
> "aliases": {}  
> }  
> }

I know when I create an indices "logstash-users", it will apply the template merged by "logstash-users" and "logstash".

I want to disable \*.raw field in "logstash-users" template, but not work.

So how can I do to disable \*.raw field in "logstash-users" template?

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 2, 2016, 6:36pm UTC](https://discuss.elastic.co/t/elasticsearch-index-template-merge-confuse/45885/2 "2016-04-02T18:36:00Z")

</div>

Delete these lines:

```auto
"fields": {
  "raw": {
    "ignore_above": 0
  }
}

```

---

<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, 11:02pm UTC](https://discuss.elastic.co/t/elasticsearch-index-template-merge-confuse/45885/3 "2017-07-05T23:02:57Z")

</div>


