Skip to content

Instantly share code, notes, and snippets.

View raphaelMalie's full-sized avatar

Raphaël Malié raphaelMalie

  • TousVoisins
  • Paris
View GitHub Profile
@raphaelMalie
raphaelMalie / gist:203e411fddb64d75444014d3f28e6f8e
Last active August 19, 2016 14:15
Use case where I need to sort by a scripted_metric aggregation in ElasticSearch
{
"filtered": {
"filter": {
"geo_distance": {
"distance": 50,
"unit": "km",
"city.coordinates": {
"lat": 48.856614,
"lon": 2.3522219
}