I'm using the following requests to index a document with a geo_shape:
curl -X PUT http://localhost:9200/test/
curl -X PUT http://localhost:9200/test/_mapping/object -d '
{
"object" : {
"properties" : {
"bbox" : {
"type": "geo_shape",
"precision": "1cm"
}
}
}
}'
curl -X POST http://localhost:9200/test/object -d '
{
"bbox" : {
"type" : "envelope",
"coordinates" : [ [-45.0, 45.0], [45.0, -45.0] ]
}
}'
Under 1.7.2 this works flawlessly and everything is done within a couple of milliseconds. But with 2.0.0-rc1 the last POST request takes several seconds and then crashes with an OutOfMemoryError (Java Heap Space).
Is this a bug or am I doing something wrong?
Cheers,
Michel