# Document with empty location

**URL:** <https://discuss.elastic.co/t/document-with-empty-location/231855>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [May 9, 2020, 5:41pm UTC](https://discuss.elastic.co/t/document-with-empty-location/231855 "2020-05-09T17:41:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpribi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gpribi/32/65066_2.png) [@gpribi](https://discuss.elastic.co/u/gpribi)\
**Post date:** [May 9, 2020, 5:41pm UTC](https://discuss.elastic.co/t/document-with-empty-location/231855/1 "2020-05-09T17:41:43Z")

</div>

Hello, I have a schema with one location field. Some of my documents have location, some others not.  
I tried posting it with "" when empty, but I get the following error  
Invalid field value: Value '' cannot be parsed as a location

Is there any way to store empty locations?

I'm aware I could store just "0,0" and add some logic in my side, but since I have 200k documents, and guess the location field occupies some bytes each, I try to be as efficient as possible

Thanks!

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [May 11, 2020, 11:30am UTC](https://discuss.elastic.co/t/document-with-empty-location/231855/2 "2020-05-11T11:30:11Z")

</div>

Try omitting that field completely from the document if it has no location.

---

<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:** [June 8, 2020, 11:35am UTC](https://discuss.elastic.co/t/document-with-empty-location/231855/3 "2020-06-08T11:35:42Z")

</div>

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