forked from kmikkel/elasticsearch-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path14-combined.feature
51 lines (50 loc) · 1.24 KB
/
14-combined.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
44
45
46
47
48
49
50
51
Feature: Full text queries, term level queries and aggregations combined
Scenario: Find pizzas with a name that contains the word "California" and then, for every topping, count the number of pizzas containing that topping
Given all pizzas are indexed
When I make a query
"""
{ todo }
"""
Then the response should contain
"""
{
"hits":{
"total":3,
"hits":[
{
"_source":{
"name":"California Malibu"
}
},
{
"_source":{
"name":"California Meatballs"
}
},
{
"_source":{
"name":"California Sunset Chicken"
}
}
]
},
"aggregations":{
"toppings":{
"buckets":[
{
"key":"Ham",
"doc_count":1
},
{
"key":"Marinated Chicken",
"doc_count":1
},
{
"key":"Meatballs",
"doc_count":1
}
]
}
}
}
"""