# Disabling norms in index creation not working

**URL:** https://discuss.elastic.co/t/disabling-norms-in-index-creation-not-working/72018
**Category:** Elasticsearch
**Created:** [January 18, 2017, 2:02pm UTC](https://discuss.elastic.co/t/disabling-norms-in-index-creation-not-working/72018 "2017-01-18T14:02:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rastogi](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@rastogi](https://discuss.elastic.co/u/rastogi)
#### Post date: [January 18, 2017, 2:02pm UTC](https://discuss.elastic.co/t/disabling-norms-in-index-creation-not-working/72018/1 "2017-01-18T14:02:16Z")

</div>

The use case is as follows:  
1.) I am trying to disable norms for a particular field in the document while index creation .  
2.) For this I have added a setting as follows in the mapping itself.  
"mappings": {  
"incident": {  
"properties": {  
"Filed1": {  
"type": "string",  
"norms": {  
"enabled": false  
},  
"index": "analyzed",  
"term\_vector": "yes"

```
                        },
                        "Filed2": {
                            "type": "string",
                            "index": "analyzed",
                            "term_vector": "yes"
                        }
                    }
                },
                "dynamic_templates": [
                    {
                        "defaultFieldsNotIndexed": {
                            "match": "*",
                            "match_mapping_type": "*",
                            "mapping": {
                                "index": "no"
                            }
                        }
                    }
                ]

```

}  
}  
3.) While executing a more\_like\_this\_query with explain being added in the Rest URL. I observed that the fieldnorm was getting calculated and was also included in the relevance score computation of the document. Following is a snippet:  
'description': 'fieldNorm(doc=274)', 'details': [], 'value': 0.5}]  
4.) The above query shows that the fieldnorm is not yet disabled.

Has anyone faced similar issue, or has any solution to th above problem,i.e., Disabling fieldnorm calculation in the relevance score.?

---

<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: [February 15, 2017, 2:02pm UTC](https://discuss.elastic.co/t/disabling-norms-in-index-creation-not-working/72018/2 "2017-02-15T14:02:28Z")

</div>

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