forked from kmikkel/elasticsearch-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
17-pagination.feature
67 lines (65 loc) · 1.44 KB
/
17-pagination.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Feature: Pagination
# Use: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
Scenario: Get the first five pizzas
Given all pizzas are indexed
When I make a query
"""
{ todo }
"""
Then the response should contain
"""
{
"hits":{
"hits": [
{
"_source": {
"topping": [],
"id": 5,
"weight": 580,
"name": "Triple Cheese"
}
},
{
"_source": {
"topping": [
"Chorizo"
],
"id": 8,
"weight": 630,
"name": "Meat lover"
}
},
{
"_source": {
"topping": [
"Ham"
],
"id": 9,
"weight": 680,
"name": "California Malibu"
}
},
{
"_source": {
"topping": [
"Meatballs"
],
"id": 10,
"weight": 680,
"name": "California Meatballs"
}
},
{
"_source": {
"topping": [
"Bacon"
],
"id": 2,
"weight": 680,
"name": "American Bacon"
}
}
]
}
}
"""