Geo Coordinate Mapping

Currently in the process of indexing data from Oracle and one of the properties is a "Coordinate" .
we would like to be able to do a geo search on the field but since it is currently added as "long" as shown below , we are not able to perform a search using the field...

can we add mapping to set these properties to Geo_Point, if so, does anyone have a good example?

"captureCoordinates" : {
"properties" : {
"sdoGtype" : {
"type" : "long"
},
"sdoPoint" : {
"properties" : {
"x" : {
"type" : "float"
},
"y" : {
"type" : "float"
}
}
},
"sdoSrid" : {
"type" : "long"
}
}
}

You will want;

"sdoPoint" : "geo_point"

Then the x and y will become the lat and lon automatically.

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