# GeoJson cannot make it work

**URL:** <https://discuss.elastic.co/t/geojson-cannot-make-it-work/20991>\
**Category:** Elasticsearch\
**Created:** [November 30, 2014, 1:55pm UTC](https://discuss.elastic.co/t/geojson-cannot-make-it-work/20991 "2014-11-30T13:55:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CB1](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@CB1](https://discuss.elastic.co/u/CB1)\
**Post date:** [November 30, 2014, 1:55pm UTC](https://discuss.elastic.co/t/geojson-cannot-make-it-work/20991/1 "2014-11-30T13:55:36Z")

</div>

I need some help -

i'm trying to configure dynamic templates to pick up GeoJSON format in  
order to use the better map in Kibana 3.x

BUT the parser throws exceptions:

java.lang.RuntimeException: indexing error MapperParsingException[failed to  
parse]; nested: ElasticsearchParseException[geo\_point expected];

my document looks like this :

{  
"inner":{  
"field1":"somevalue",  
"field2":"somevalue",  
"geo\_location": [0, 0]  
}  
}

and the mapping template looks like this

{  
"mappings": {  
"_default_": {  
"\_source": {  
"includes": [  
"\*"  
]  
},  
"dynamic\_templates": [  
{  
"geo\_data": {  
"path\_match": "inner.geo\_location",  
"mapping": {  
"type": "geo\_point"  
}  
}  
}  
],  
"properties": {  
"inner": {  
"type": "object",  
"properties": {  
"meta": {  
"include\_in\_all": true,  
"type": "object"  
}  
}  
}  
}  
}  
}  
}

am i doing something wrong? am i missing something?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7e7846c3-ace3-4f0e-92f4-9509ccb1a52d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7e7846c3-ace3-4f0e-92f4-9509ccb1a52d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:47am UTC](https://discuss.elastic.co/t/geojson-cannot-make-it-work/20991/2 "2017-07-06T00:47:01Z")

</div>

Closed on July 6, 2017, 12:47am UTC


