Can convert geo_shape to geo_point for existing index?


(Sunil) #1

Hi,
We have already indexed data with location geo_shape.
mapping
"location": {
"type": "geo_shape",
"points_only" : true
}
indexed as
"location": {
"coordinates": [
"72.82568500000001",
"19.208425"
],
"type": "point"
}

  1. Will we be able to _reindex geo_shape to new mapping as geo_point ?

My requirement is to save only a point(lat, lng) and want to check whether this point fall inside a polygon.

  1. For this which datatype is the best way of implementation in terms of speed and reliability. ?

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.