From 99c3d8ab26f3fad2e5bcbd59a407493229d8c65b Mon Sep 17 00:00:00 2001 From: Julie Tibshirani Date: Wed, 8 Aug 2018 14:22:03 -0700 Subject: [PATCH] Fix a bug in the BWC tests where we added a field alias in unsupported versions. --- .../rest-api-spec/test/search/110_field_collapsing.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search/110_field_collapsing.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search/110_field_collapsing.yml index f6b82a74d34..521dc4c1cac 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search/110_field_collapsing.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search/110_field_collapsing.yml @@ -7,7 +7,6 @@ setup: test: properties: numeric_group: { type: integer } - group_alias: { type: alias, path: numeric_group } - do: index: @@ -354,6 +353,14 @@ setup: - skip: version: " - 6.3.99" reason: Field aliases were introduced in 6.4.0. + - do: + indices.put_mapping: + index: test + type: test + body: + test: + properties: + group_alias: { type: alias, path: numeric_group } - do: search: index: test