Skip to content

Commit fc3da97

Browse files
committed
fix tests
1 parent f61215c commit fc3da97

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
@@ -1802,6 +1802,7 @@ synthetic_source with copy_to pointing to ambiguous field and subobjects auto:
18021802
---
18031803
synthetic_source with copy_to pointing at dynamic field:
18041804
- requires:
1805+
test_runner_features: contains
18051806
cluster_features: ["mapper.source.synthetic_source_copy_to_inside_objects_fix"]
18061807
reason: requires copy_to support in synthetic source
18071808

@@ -1851,21 +1852,21 @@ synthetic_source with copy_to pointing at dynamic field:
18511852
search:
18521853
index: test
18531854
body:
1854-
fields: [ "c.copy" ]
1855+
docvalue_fields: [ "c.copy.keyword" ]
18551856

18561857
- match:
18571858
hits.hits.0._source:
18581859
k: "hello"
18591860
- match:
18601861
hits.hits.0.fields:
1861-
c.copy: [ "hello" ]
1862+
c.copy.keyword: [ "hello" ]
18621863

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

18701871
- match:
18711872
hits.hits.2._source:
@@ -1874,7 +1875,7 @@ synthetic_source with copy_to pointing at dynamic field:
18741875
copy: "zap"
18751876
- match:
18761877
hits.hits.2.fields:
1877-
c.copy: [ "hello", "zap" ]
1878+
c.copy.keyword: [ "hello", "zap" ]
18781879

18791880
---
18801881
synthetic_source with copy_to pointing inside dynamic object:
@@ -1924,21 +1925,21 @@ synthetic_source with copy_to pointing inside dynamic object:
19241925
search:
19251926
index: test
19261927
body:
1927-
fields: [ "c.copy" ]
1928+
docvalue_fields: [ "c.copy.keyword" ]
19281929

19291930
- match:
19301931
hits.hits.0._source:
19311932
k: "hello"
19321933
- match:
19331934
hits.hits.0.fields:
1934-
c.copy: [ "hello" ]
1935+
c.copy.keyword: [ "hello" ]
19351936

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

19431944
- match:
19441945
hits.hits.2._source:
@@ -1947,5 +1948,5 @@ synthetic_source with copy_to pointing inside dynamic object:
19471948
copy: "zap"
19481949
- match:
19491950
hits.hits.2.fields:
1950-
c.copy: [ "hello", "zap" ]
1951+
c.copy.keyword: [ "hello", "zap" ]
19511952

0 commit comments

Comments
 (0)