forked from kmikkel/elasticsearch-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
06-terms-query.feature
43 lines (41 loc) · 906 Bytes
/
06-terms-query.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Feature: Term level queries (exact terms)
# Use: https://www.elastic.co/guide/en/elasticsearch/guide/current/_finding_multiple_exact_values.html
Scenario: Find the pizzas that has "Bacon" or "Marinated Chicken" topping
Given all pizzas are indexed
When I make a query
"""
{ todo }
"""
Then the response should contain
"""
{
"hits":{
"total":3,
"hits":[
{
"_source":{
"topping":[
"Marinated Chicken"
]
}
},
{
"_source":{
"topping":[
"Bacon"
]
}
},
{
"_source":{
"topping":[
"Meatballs",
"Marinated Beef",
"Bacon"
]
}
}
]
}
}
"""