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
}


Przemek wrote
> 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?
> 
> P.
> 
> --





--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/geo-shape-and-NullPointerException-tp4028704p4069653.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1422369199690-4069653.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to