Elastic search is currently not very forgiving when it comes to these
things and it doesn't help that the examples in the documents are fragments
rather than complete working examples.
Yep, format is wrong. Wrap coordinates to one more array. Like this:
{
"boundaries" : {
"type" : "multipolygon",
"coordinates" :
[[[
[-74.0137499999999, 40.728304],
[-74.0137349999999, 40.728302],
[-74.0137429999999, 40.7282450000001],
[-74.013888, 40.728258],
[-74.0138789999999, 40.7283140000001],
[-74.0137499999999, 40.728304]
]]]
},
"_id" : 3
}
Hello,
I am testing out the geo_shape type described here:
http://www.elasticsearch.org/guide/reference/mapping/geo-shape-type.html
I have created a mapping and provided a sample data to it, but
ElasticSearch throws a NullPointerException at me, more details here:
https://gist.github.com/5ca45633dede9cc8dc1c
Am I sending the data in wrong format?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.