Skip to content

Commit e8bf344

Browse files
authored
Revert "[TEST] Replace _source.mode with index.mapping.source.mode in integra…" (#116069)
This reverts commit a360757.
1 parent 889f015 commit e8bf344

File tree

44 files changed

+357
-436
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

+357
-436
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,9 @@ synthetic _source:
356356
indices.create:
357357
index: test_synthetic
358358
body:
359-
settings:
360-
index:
361-
mapping.source.mode: synthetic
362359
mappings:
360+
_source:
361+
mode: synthetic
363362
properties:
364363
page:
365364
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
185183
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
56355633
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: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,9 @@ synthetic_source:
285285
indices.create:
286286
index: synthetic_source_test
287287
body:
288-
settings:
289-
index:
290-
mapping.source.mode: synthetic
291288
mappings:
289+
_source:
290+
mode: synthetic
292291
properties:
293292
foo:
294293
type: match_only_text
@@ -363,10 +362,9 @@ synthetic_source with copy_to:
363362
indices.create:
364363
index: synthetic_source_test
365364
body:
366-
settings:
367-
index:
368-
mapping.source.mode: synthetic
369365
mappings:
366+
_source:
367+
mode: synthetic
370368
properties:
371369
foo:
372370
type: match_only_text

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)