# Stored geo\_point field return Lucene interleaved/morton hash?

**URL:** <https://discuss.elastic.co/t/stored-geo-point-field-return-lucene-interleaved-morton-hash/46149>\
**Category:** Elasticsearch\
**Created:** [April 3, 2016, 3:17am UTC](https://discuss.elastic.co/t/stored-geo-point-field-return-lucene-interleaved-morton-hash/46149 "2016-04-03T03:17:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Fraschetti](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@Chris\_Fraschetti](https://discuss.elastic.co/u/Chris_Fraschetti)\
**Post date:** [April 3, 2016, 3:17am UTC](https://discuss.elastic.co/t/stored-geo-point-field-return-lucene-interleaved-morton-hash/46149/1 "2016-04-03T03:17:44Z")

</div>

Greetings,

It appears that all stored geo\_point fields (when we're not leveraging \_source) actually return the [Lucene representation](http://xbib.org/elasticsearch/2.1.1/apidocs/org/apache/lucene/util/XGeoUtils.html#mortonUnhashLat-long-) of the lat/long. For those of us not leveraging the Elasticsearch/Lucene libs directly, is there some way to have Elasticsearch split the combined lat/long data back into individual lat/long components for easier consumption?

What was sent in:  
"location": {  
"lat": 37.65785,  
"lon": -122.42313  
}

What was returned:  
"location": [  
2564999456675991600  
]

Repro command to be ran in Sense:  
DELETE /geotemp

PUT /\_template/geotemp  
{  
"template": "geotemp\*",  
"mappings": {  
"geodatapoint": {  
"properties": {  
"location": {  
"type": "geo\_point",  
"store": true  
}  
}  
}  
}  
}

PUT /geotemp/geodatapoint/1  
{  
"location": {  
"lat": 37.65785,  
"lon": -122.42313  
}  
}

GET /geotemp/geodatapoint/\_search  
{  
"query": {  
"bool": {  
"must": [  
{  
"match\_all": {}  
}  
]  
}  
},  
"fields": [  
"\*"  
]  
}

---

<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:** [July 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/stored-geo-point-field-return-lucene-interleaved-morton-hash/46149/2 "2017-07-05T23:02:56Z")

</div>


