# Verifying if all norms disabled

**URL:** <https://discuss.elastic.co/t/verifying-if-all-norms-disabled/18340>\
**Category:** Elasticsearch\
**Created:** [June 25, 2014, 4:05pm UTC](https://discuss.elastic.co/t/verifying-if-all-norms-disabled/18340 "2014-06-25T16:05:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Dotte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_dotte/32/1462_2.png) [@Ben\_Dotte](https://discuss.elastic.co/u/Ben_Dotte)\
**Post date:** [June 25, 2014, 4:05pm UTC](https://discuss.elastic.co/t/verifying-if-all-norms-disabled/18340/1 "2014-06-25T16:05:36Z")

</div>

Hi,

We do not utilize scoring so I'm trying to disable norms and set  
index\_options to "docs" for all fields. Every search has a sort order, so I  
understand that disables scoring anyway, but it sounds like those options  
are still a good idea to reduce the size of the index? I've attempted to  
apply a dynamic template from another post:

"dynamic\_templates": [{  
"template\_strings\_no\_norms" : {  
"mapping" : {  
"type" : "string",  
"omit\_norms" : true,  
"index\_options" : "docs"  
},  
"match" : "\*",  
"match\_mapping\_type" : "string"  
}  
}]

The HQ plugin shows this template is applied in the REST Indices/Settings  
area. However when I perform a search with no sort order I still see a  
score getting generated and the size of my index has not decreased. Is  
there any way to verify if norms are in fact being disabled on the fields?

Thanks,  
Ben

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/84968da5-599b-4bf2-bb32-80461b95f0d8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/84968da5-599b-4bf2-bb32-80461b95f0d8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ben\_Dotte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_dotte/32/1462_2.png) [@Ben\_Dotte](https://discuss.elastic.co/u/Ben_Dotte)\
**Post date:** [June 25, 2014, 9:17pm UTC](https://discuss.elastic.co/t/verifying-if-all-norms-disabled/18340/2 "2014-06-25T21:17:20Z")

</div>

When I wrote this, I had no explicit mappings defined. Now as I am adding  
explicit mappings to each field, I've noticed my indexes seem to be "losing  
weight", without turning off norms for each one. Searches without a sort  
order still return a real-ish score, but with the smaller index size, I  
take it the dynamic template is working, just that it only works with  
explicitly-mapped fields.

On Wednesday, June 25, 2014 11:05:36 AM UTC-5, Ben Dotte wrote:

> Hi,
> 
> We do not utilize scoring so I'm trying to disable norms and set  
> index\_options to "docs" for all fields. Every search has a sort order, so I  
> understand that disables scoring anyway, but it sounds like those options  
> are still a good idea to reduce the size of the index? I've attempted to  
> apply a dynamic template from another post:
> 
> "dynamic\_templates": [{  
> "template\_strings\_no\_norms" : {  
> "mapping" : {  
> "type" : "string",  
> "omit\_norms" : true,  
> "index\_options" : "docs"  
> },  
> "match" : "\*",  
> "match\_mapping\_type" : "string"  
> }  
> }]
> 
> The HQ plugin shows this template is applied in the REST Indices/Settings  
> area. However when I perform a search with no sort order I still see a  
> score getting generated and the size of my index has not decreased. Is  
> there any way to verify if norms are in fact being disabled on the fields?
> 
> Thanks,  
> Ben

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/249729dd-2802-485a-a050-be8e4cf3cfdc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/249729dd-2802-485a-a050-be8e4cf3cfdc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:19am UTC](https://discuss.elastic.co/t/verifying-if-all-norms-disabled/18340/3 "2017-07-06T01:19:40Z")

</div>


