Skip to content

Commit 9ad3fba

Browse files
committed
fix tests
1 parent 4035121 commit 9ad3fba

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.create/20_synthetic_source.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,7 @@ synthetic_source with copy_to pointing to ambiguous field and subobjects auto:
18031803
---
18041804
synthetic_source with copy_to pointing at dynamic field:
18051805
- requires:
1806+
test_runner_features: contains
18061807
cluster_features: ["mapper.source.synthetic_source_copy_to_inside_objects_fix"]
18071808
reason: requires copy_to support in synthetic source
18081809

@@ -1852,21 +1853,21 @@ synthetic_source with copy_to pointing at dynamic field:
18521853
search:
18531854
index: test
18541855
body:
1855-
fields: [ "c.copy" ]
1856+
docvalue_fields: [ "c.copy.keyword" ]
18561857

18571858
- match:
18581859
hits.hits.0._source:
18591860
k: "hello"
18601861
- match:
18611862
hits.hits.0.fields:
1862-
c.copy: [ "hello" ]
1863+
c.copy.keyword: [ "hello" ]
18631864

18641865
- match:
18651866
hits.hits.1._source:
18661867
k: ["55", "66"]
18671868
- match:
18681869
hits.hits.1.fields:
1869-
c.copy: [ "55", "66" ]
1870+
c.copy.keyword: [ "55", "66" ]
18701871

18711872
- match:
18721873
hits.hits.2._source:
@@ -1875,7 +1876,7 @@ synthetic_source with copy_to pointing at dynamic field:
18751876
copy: "zap"
18761877
- match:
18771878
hits.hits.2.fields:
1878-
c.copy: [ "hello", "zap" ]
1879+
c.copy.keyword: [ "hello", "zap" ]
18791880

18801881
---
18811882
synthetic_source with copy_to pointing inside dynamic object:
@@ -1925,21 +1926,21 @@ synthetic_source with copy_to pointing inside dynamic object:
19251926
search:
19261927
index: test
19271928
body:
1928-
fields: [ "c.copy" ]
1929+
docvalue_fields: [ "c.copy.keyword" ]
19291930

19301931
- match:
19311932
hits.hits.0._source:
19321933
k: "hello"
19331934
- match:
19341935
hits.hits.0.fields:
1935-
c.copy: [ "hello" ]
1936+
c.copy.keyword: [ "hello" ]
19361937

19371938
- match:
19381939
hits.hits.1._source:
19391940
k: ["55", "66"]
19401941
- match:
19411942
hits.hits.1.fields:
1942-
c.copy: [ "55", "66" ]
1943+
c.copy.keyword: [ "55", "66" ]
19431944

19441945
- match:
19451946
hits.hits.2._source:
@@ -1948,5 +1949,5 @@ synthetic_source with copy_to pointing inside dynamic object:
19481949
copy: "zap"
19491950
- match:
19501951
hits.hits.2.fields:
1951-
c.copy: [ "hello", "zap" ]
1952+
c.copy.keyword: [ "hello", "zap" ]
19521953

0 commit comments

Comments
 (0)