# How to create field without norms when creating an index

**URL:** <https://discuss.elastic.co/t/how-to-create-field-without-norms-when-creating-an-index/106250>\
**Category:** Elasticsearch\
**Created:** [November 2, 2017, 9:07pm UTC](https://discuss.elastic.co/t/how-to-create-field-without-norms-when-creating-an-index/106250 "2017-11-02T21:07:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EuclideanSearch](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@EuclideanSearch](https://discuss.elastic.co/u/EuclideanSearch)\
**Post date:** [November 2, 2017, 9:07pm UTC](https://discuss.elastic.co/t/how-to-create-field-without-norms-when-creating-an-index/106250/1 "2017-11-02T21:07:53Z")

</div>

Hi,

I am trying to create an index like so:  
{  
"my\_new\_index": {  
"mappings": {  
"my\_mapping": {  
"properties": {  
"my\_id": {  
"type": "keyword",  
"norms": false  
}  
}}}  
But when I use the API to get the index I do not see 'norms' returned. Is there a way to disable norm creation when I create an index? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)\
**Post date:** [November 2, 2017, 11:00pm UTC](https://discuss.elastic.co/t/how-to-create-field-without-norms-when-creating-an-index/106250/2 "2017-11-02T23:00:23Z")

</div>

`norms` [already defaults to `false` for fields of type `keyword`](https://www.elastic.co/guide/en/elasticsearch/reference/master/keyword.html#keyword-params). Elasticsearch often won't return parameters that are set to the defaults. (Try setting `norms` to `true', and you will see that Elasticsearch **will** return that setting in the mapping when you retrieve it, because you have set it to a non-default value).

---

<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:** [November 30, 2017, 11:00pm UTC](https://discuss.elastic.co/t/how-to-create-field-without-norms-when-creating-an-index/106250/3 "2017-11-30T23:00:41Z")

</div>

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