Document with empty location

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!

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

1 Like

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