Skip to content

Commit a360757

Browse files
authored
[TEST] Replace _source.mode with index.mapping.source.mode in integration tests (#115926)
* Replace _source.mode with index.mapping.source.mode in integration tests * fix tests * revert 40_source_mode_setting.yml
1 parent 0a5b1c6 commit a360757

File tree

44 files changed

+436
-357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+436
-357
lines changed

modules/aggregations/src/yamlRestTest/resources/rest-api-spec/test/aggregations/top_hits.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,10 @@ synthetic _source:
356356
indices.create:
357357
index: test_synthetic
358358
body:
359+
settings:
360+
index:
361+
mapping.source.mode: synthetic
359362
mappings:
360-
_source:
361-
mode: synthetic
362363
properties:
363364
page:
364365
type: keyword

modules/lang-painless/src/yamlRestTest/resources/rest-api-spec/test/painless/50_script_doc_values.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ setup:
180180
body:
181181
settings:
182182
number_of_shards: 1
183+
index:
184+
mapping.source.mode: synthetic
183185
mappings:
184-
_source:
185-
mode: synthetic
186186
properties:
187187
boolean:
188188
type: boolean
@@ -5630,9 +5630,9 @@ version and sequence number synthetic _source:
56305630
body:
56315631
settings:
56325632
number_of_shards: 1
5633+
index:
5634+
mapping.source.mode: synthetic
56335635
mappings:
5634-
_source:
5635-
mode: synthetic
56365636
properties:
56375637
keyword:
56385638
type: keyword

modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/match_only_text/10_basic.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ synthetic_source:
285285
indices.create:
286286
index: synthetic_source_test
287287
body:
288+
settings:
289+
index:
290+
mapping.source.mode: synthetic
288291
mappings:
289-
_source:
290-
mode: synthetic
291292
properties:
292293
foo:
293294
type: match_only_text
@@ -362,9 +363,10 @@ synthetic_source with copy_to:
362363
indices.create:
363364
index: synthetic_source_test
364365
body:
366+
settings:
367+
index:
368+
mapping.source.mode: synthetic
365369
mappings:
366-
_source:
367-
mode: synthetic
368370
properties:
369371
foo:
370372
type: match_only_text

modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/rank_feature/30_synthetic_source.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ setup:
77
indices.create:
88
index: test
99
body:
10+
settings:
11+
index:
12+
mapping.source.mode: synthetic
1013
mappings:
11-
_source:
12-
mode: synthetic
1314
properties:
1415
pagerank:
1516
type: rank_feature

modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/rank_features/20_synthetic_source.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ setup:
77
indices.create:
88
index: test
99
body:
10+
settings:
11+
index:
12+
mapping.source.mode: synthetic
1013
mappings:
11-
_source:
12-
mode: synthetic
1314
properties:
1415
tags:
1516
type: rank_features

modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/search-as-you-type/30_synthetic_source.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ setup:
77
indices.create:
88
index: test
99
body:
10+
settings:
11+
index:
12+
mapping.source.mode: synthetic
1013
mappings:
11-
_source:
12-
mode: synthetic
1314
properties:
1415
a_field:
1516
type: search_as_you_type

modules/mapper-extras/src/yamlRestTest/resources/rest-api-spec/test/token_count/10_basic.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
indices.create:
4343
index: test
4444
body:
45+
settings:
46+
index:
47+
mapping.source.mode: synthetic
4548
mappings:
46-
_source:
47-
mode: synthetic
4849
properties:
4950
count:
5051
type: token_count

modules/parent-join/src/yamlRestTest/resources/rest-api-spec/test/60_synthetic_source.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ supported:
77
indices.create:
88
index: test
99
body:
10+
settings:
11+
index:
12+
mapping.source.mode: synthetic
1013
mappings:
11-
_source:
12-
mode: synthetic
1314
properties:
1415
join_field:
1516
type: join

modules/percolator/src/yamlRestTest/resources/rest-api-spec/test/10_basic.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@
137137
indices.create:
138138
index: queries_index
139139
body:
140+
settings:
141+
index:
142+
mapping.source.mode: synthetic
140143
mappings:
141-
_source:
142-
mode: synthetic
143144
properties:
144145
query:
145146
type: percolator

modules/reindex/src/yamlRestTest/resources/rest-api-spec/test/reindex/110_synthetic_source.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ setup:
33
indices.create:
44
index: synthetic
55
body:
6+
settings:
7+
index:
8+
mapping.source.mode: synthetic
69
mappings:
7-
_source:
8-
mode: synthetic
910
properties:
1011
kwd:
1112
type: keyword

0 commit comments

Comments
 (0)