Query
"bucketQuery" : {
"clause" : {
"type": "geodistance",
"field": "mylocation",
"center": {
"_type": "point",
"lat": 11.0,
"lon": 1.0
}
"radius": 1023
"clauseIdentifier": "restrantsNearMe"
}
"offset" : 0,
"numberOfResults" : 0,
"orderBy" : "_calculated.restrantsNearMe"
"descending" : false
}
Result
...
{
"mylocation": {
"_type": "point",
"lat": 11.0,
"lon": 1.0
},
"_id": "0512ca53-4d86-4ee3-b2d0-53de7559c6cc",
"_modified": 1366965367393,
"_created": 1366965367393,
"_owner": "SYS_ADMIN",
"_version": "1",
"_calculated": {
"restrantsNearMe": 15605.156575746192
}
}
...