Skip to content

Commit 45b114a

Browse files
committed
Fix a bug in the BWC tests where we added a field alias in unsupported versions.
1 parent cfe90b2 commit 45b114a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search/110_field_collapsing.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ setup:
77
test:
88
properties:
99
numeric_group: { type: integer }
10-
# group_alias: { type: alias, path: numeric_group }
1110

1211
- do:
1312
index:
@@ -398,8 +397,16 @@ setup:
398397
---
399398
"field collapsing on a field alias":
400399
- skip:
401-
version: " - 6.9.99"
402-
reason: Field aliases require non-BWC index setup / Field aliases were introduced in 6.4.0.
400+
version: " - 6.3.99"
401+
reason: Field aliases were introduced in 6.4.0.
402+
- do:
403+
indices.put_mapping:
404+
index: test
405+
type: test
406+
body:
407+
test:
408+
properties:
409+
group_alias: { type: alias, path: numeric_group }
403410
- do:
404411
search:
405412
index: test

0 commit comments

Comments
 (0)