# How to disable "Norms" for all field?

**URL:** <https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232>\
**Category:** Elasticsearch\
**Created:** [August 12, 2015, 2:07am UTC](https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232 "2015-08-12T02:07:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gin](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@gin](https://discuss.elastic.co/u/gin)\
**Post date:** [August 12, 2015, 2:07am UTC](https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232/1 "2015-08-12T02:07:46Z")

</div>

I noticed the doc said the Norms can be disabled for specific field. Can Norms be disabled for all document field?

I did a index templete like below  
{  
"my\_index" : {  
"template" : "_",  
"mappings" : {  
"default" : {  
"\_all" : {"enabled" : false},  
"dynamic\_templates": [  
{  
"no\_norms" : {  
"match": "_",  
"mapping": {  
"properties": {  
"type" : "string",  
"norms" : { "enabled" : false }  
}  
}  
}  
}  
]

```
            }
    }

```

}  
and this can work, but I can still see \_score in query result. Is there something wrong?

curl -XGET '[http://localhost:9200/lsfnew6/test/\_search?q=aa:abc&pretty=true](http://localhost:9200/lsfnew6/test/_search?q=aa:abc&pretty=true)'  
{  
"took" : 10,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 3,  
"successful" : 3,  
"failed" : 0  
},  
"hits" : {  
"total" : 1,  
"max\_score" : 0.30685282,  
"hits" : [ {  
"\_index" : "lsfnew6",  
"\_type" : "test",  
"\_id" : "1",  
"\_score" : 0.30685282,  
"\_source":{"aa":"abc","bb":"xyz"}  
} ]  
}  
}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 12, 2015, 4:15am UTC](https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232/2 "2015-08-12T04:15:12Z")

</div>

You need to do this per field - [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-core-types.html#norms](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-core-types.html#norms)

---

<div class="post-metadata">

**Author:** ![gin](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@gin](https://discuss.elastic.co/u/gin)\
**Post date:** [August 13, 2015, 1:45am UTC](https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232/3 "2015-08-13T01:45:31Z")

</div>

That's bad news. It should be a simple way : (

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 13, 2015, 2:41am UTC](https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232/4 "2015-08-13T02:41:42Z")

</div>

Feel free to raise a feature request on GH then, we're always open to community suggestions to make things easier 🙂

---

<div class="post-metadata">

**Author:** ![Dominik\_Stadler](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@Dominik\_Stadler](https://discuss.elastic.co/u/Dominik_Stadler)\
**Post date:** [December 19, 2016, 8:06am UTC](https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232/5 "2016-12-19T08:06:48Z")

</div>

Discussion at [https://github.com/elastic/elasticsearch/issues/19716](https://github.com/elastic/elasticsearch/issues/19716) seems to indicate that it should work when the correct index-template is used.

---

<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:04pm UTC](https://discuss.elastic.co/t/how-to-disable-norms-for-all-field/27232/6 "2017-07-05T22:04:50Z")

</div>


