# Geo type mapping

**URL:** <https://discuss.elastic.co/t/geo-type-mapping/13530>\
**Category:** Elasticsearch\
**Created:** [September 10, 2013, 4:10am UTC](https://discuss.elastic.co/t/geo-type-mapping/13530 "2013-09-10T04:10:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidll](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@davidll](https://discuss.elastic.co/u/davidll)\
**Post date:** [September 10, 2013, 4:10am UTC](https://discuss.elastic.co/t/geo-type-mapping/13530/1 "2013-09-10T04:10:26Z")

</div>

Hi,  
I'm using ES 0.90.2 with mongodb river, and I'm trying to map a geo point field. The field is like this:

"latlon": "37.18817,-3.60667"

And the mapping:

curl -XPUT '[http://localhost:9200/mongoindex/my\_index/\_mapping](http://localhost:9200/mongoindex/my_index/_mapping)' -d '  
{  
"mappings" : {  
"perfil" : {  
"properties" : {  
"latlon" : {"type" : "geo\_point"}  
}  
}  
}  
}  
'

I search:

[http://localhost:9200/mongoindex/users/\_search?source=](http://localhost:9200/mongoindex/users/_search?source=){  
"query":{  
"filtered" : {  
"query" : {  
"match\_all": {}  
},  
"filter" : {  
"geo\_distance" : {  
"distance" : "12km",  
"latlon" : "37.18817,-3.60667"  
}  
}  
}  
}  
}  
}

But the field is not a geo\_point:

QueryParsingException[[mongoindex] field [latlon] is not a geo\_point field]

Any idea? Thanks

---

<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 6, 2017, 2:17am UTC](https://discuss.elastic.co/t/geo-type-mapping/13530/2 "2017-07-06T02:17:24Z")

</div>


