32 lines
524 B
Text
32 lines
524 B
Text
|
GET /restaurants/_search
|
||
|
{
|
||
|
"from" : 0,
|
||
|
"size" : 5,
|
||
|
"sort" : [
|
||
|
{ "averageCostForTwo" : "desc" }
|
||
|
],
|
||
|
"query": {
|
||
|
"bool": {
|
||
|
"must": [
|
||
|
{
|
||
|
"range": {
|
||
|
"date": {
|
||
|
"gte": "2018-01-01",
|
||
|
"lte": "2018-12-31"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"geo_distance": {
|
||
|
"distance": "20km",
|
||
|
"location": {
|
||
|
"lat": 33.9259,
|
||
|
"lon": -83.3389
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|