Skip to content

Commit 9d405c6

Browse files
author
Clément Tourrière
committed
Fixes date_hierachy tests for 6.8
1 parent 644bc3d commit 9d405c6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/test/resources/rest-api-spec/test/PathHierarchy/30_date_hierarchy.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ setup:
77
number_of_shards: 2
88
number_of_replicas: 0
99
mappings:
10-
properties:
11-
date:
12-
type: date
10+
_doc:
11+
properties:
12+
date:
13+
type: date
1314

1415
- do:
1516
cluster.health:
@@ -20,18 +21,21 @@ setup:
2021
- do:
2122
index:
2223
index: calendar
24+
type: _doc
2325
id: 1
2426
body: { "date": "2012-01-10T02:47:28" }
2527

2628
- do:
2729
index:
2830
index: calendar
31+
type: _doc
2932
id: 2
3033
body: { "date": "2011-01-05T01:43:35" }
3134

3235
- do:
3336
index:
3437
index: calendar
38+
type: _doc
3539
id: 3
3640
body: { "date": "2012-05-01T12:24:19" }
3741

@@ -42,7 +46,6 @@ setup:
4246
# test years interval
4347
- do:
4448
search:
45-
rest_total_hits_as_int: true
4649
body: {
4750
"size" : 0,
4851
"aggs" : {
@@ -68,7 +71,6 @@ setup:
6871
# test months interval
6972
- do:
7073
search:
71-
rest_total_hits_as_int: true
7274
body: {
7375
"size": 0,
7476
"aggs": {

0 commit comments

Comments
 (0)