Gep_point with geohash:true == geo_shape?


(Ran) #1

Hello,

I am new to ES, each of my documents contain a point.
Some of my queries will require to decide what documents are inside a complex polygon (geo_shape seems most fitted)
While other queries will require distance and aggregations (geo_point most suitable)

I thought I will filter results with geohash, so my geo_point also has geohash set to true as well with prefix set to true.
Now I look at geo_shape, it also generate the same geohash and index it just like my point did.

It seems redundant,

My current mapping uses transform to copy the input geo_shape coordinates into my geo_point field, so I store 2 fields from my one input point. Is this really necessary ?

Thanks,
R.


(system) #2