# Elasticsearch 2.3.1 error with retrieve geo field

**URL:** <https://discuss.elastic.co/t/elasticsearch-2-3-1-error-with-retrieve-geo-field/46495>\
**Category:** Elasticsearch\
**Created:** [April 6, 2016, 8:49am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-1-error-with-retrieve-geo-field/46495 "2016-04-06T08:49:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiorY89](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@LiorY89](https://discuss.elastic.co/u/LiorY89)\
**Post date:** [April 6, 2016, 8:49am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-1-error-with-retrieve-geo-field/46495/1 "2016-04-06T08:49:40Z")

</div>

I'm using the "fields" option inside my queries...  
when i used it on my 1.7 ES, i got results ok.  
for example:

> GET records/\_search  
> {  
> "size": 20,  
> "fields": ["recordLocation"]  
> }

I got back results like:

> "hits": [  
> {  
> "\_index": "record",  
> "\_type": "recordType",  
> "\_id": "AVPCt3tP8YsyAZn1cl6R",  
> "\_score": 1,  
> "fields": {  
> "recordLocation": [  
> "46.367424,7.9544196"  
> ]  
> }  
> }

Today i switched to Elastic 2.3.1, and the same query now returning

> ```
> "hits": [
> {
> "_index": "record",
> "_type": "recordType",
> "_id": "AVPqoCiyukfNLt2Gxpfw",
> "_score": 1,
> "fields": {
> "recordLocation": [
> 3277776633078856000
> ]
> }
> }
> 
> ```

Is this a bug? or is there another way to retrieve the lat/lon?

---

<div class="post-metadata">

**Author:** ![LiorY89](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@LiorY89](https://discuss.elastic.co/u/LiorY89)\
**Post date:** [April 6, 2016, 8:55am UTC](https://discuss.elastic.co/t/elasticsearch-2-3-1-error-with-retrieve-geo-field/46495/2 "2016-04-06T08:55:13Z")

</div>

OK, just saw the source\_filter:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.html)

never mind 🙂

---

<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:01pm UTC](https://discuss.elastic.co/t/elasticsearch-2-3-1-error-with-retrieve-geo-field/46495/3 "2017-07-05T23:01:58Z")

</div>

Closed on July 5, 2017, 11:01pm UTC


