This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
va/Assignment2_part1/queries/query2b.http

32 lines
524 B
Text
Raw Permalink Normal View History

2023-04-24 07:49:04 +00:00
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
}
}
}
]
}
}
}