Indexing geo_shape in 2.0.0-rc1 (BUG?)


(Michel Krämer) #1

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


(Mark Walkom) #2

Looks like a bug to me!

I've raised this on GH, thanks heaps for reporting it!


(Michel Krämer) #3

Thanks a lot, Mark!


(Mark Walkom) #4

As was pointed out in the GH issue (and I totally missed this originally), you're using a resolution of 1cm, so you have to expect that to use a lot of heap.


(Michel Krämer) #5

Thanks. I replied on GitHub.

Michel


(system) #6