# Unfilled fields

**URL:** <https://discuss.elastic.co/t/unfilled-fields/208188>\
**Category:** Elasticsearch\
**Created:** [November 16, 2019, 10:51pm UTC](https://discuss.elastic.co/t/unfilled-fields/208188 "2019-11-16T22:51:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charlotte\_Mar](https://avatars.discourse-cdn.com/v4/letter/c/c68b51/32.png) [@Charlotte\_Mar](https://discuss.elastic.co/u/Charlotte_Mar)\
**Post date:** [November 16, 2019, 10:51pm UTC](https://discuss.elastic.co/t/unfilled-fields/208188/1 "2019-11-16T22:51:18Z")

</div>

Hi  
I am new to elasticsearch and I wanna ask about mapping.  
If I have the following mapping :  
{  
"mappings":{  
"properties":{  
"customer\_id": {"type": "integer"},  
"customer\_name": {"type": "text"},  
"city": {"type": "keyword"}  
}  
}

and as I insert documents on of them did not have a city as below :  
{  
"customer\_id": "145",  
"customer\_name": "charlotte"  
}  
My question is what value would be assigned to the "city" field? would it be "null"?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [November 16, 2019, 11:07pm UTC](https://discuss.elastic.co/t/unfilled-fields/208188/2 "2019-11-16T23:07:31Z")

</div>

By default, no value will be assigned.

You may, however, [explicitly configure a value](https://www.elastic.co/guide/en/elasticsearch/reference/current/null-value.html) to be indexed for the field in the field mapping. Please note, though, that this does not cause the field value to be modified in the `_source` of the document.

---

<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:** [December 14, 2019, 11:07pm UTC](https://discuss.elastic.co/t/unfilled-fields/208188/3 "2019-12-14T23:07:52Z")

</div>

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