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/query2a.http

33 lines
506 B
Text
Raw Permalink Normal View History

2023-04-24 07:49:04 +00:00
GET /restaurants/_search
{
"query": {
"bool": {
"must": [
2023-04-24 08:26:23 +00:00
{
"match": {
"name": "pizza"
}
}
2023-04-24 07:49:04 +00:00
],
"should": [
2023-04-24 08:26:23 +00:00
{
"match": {
2023-04-24 21:18:10 +00:00
"ratingText.keyword": "Very Good"
2023-04-24 08:26:23 +00:00
}
},
{
"match": {
2023-04-24 21:18:10 +00:00
"ratingText.keyword": "Excellent"
2023-04-24 08:26:23 +00:00
}
}
2023-04-24 07:49:04 +00:00
],
"must_not": [
2023-04-24 08:26:23 +00:00
{
"match": {
"name": "pasta"
}
}
2023-04-24 07:49:04 +00:00
]
}
}
2023-04-24 21:18:10 +00:00
}