{
    "aggs": {
        "geo_agg": {
            "geo_distance": {
                "origin": {
                    "lat": 45.0,
                    "lon": 27.0
                },
                "field": "geo_point",
                "distance_type": "arc",
                "ranges": [
                    {
                        "from": 1.0,
                        "to": 1.0
                    }
                ]
            }
        }
    }
}
