[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
This commit is contained in:
Kostas Krikellas 2024-11-01 09:46:06 +02:00 committed by GitHub
parent 0a5b1c6ece
commit a360757968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 436 additions and 357 deletions

View file

@ -356,9 +356,10 @@ synthetic _source:
indices.create: indices.create:
index: test_synthetic index: test_synthetic
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
page: page:
type: keyword type: keyword

View file

@ -180,9 +180,9 @@ setup:
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
boolean: boolean:
type: boolean type: boolean
@ -5630,9 +5630,9 @@ version and sequence number synthetic _source:
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
keyword: keyword:
type: keyword type: keyword

View file

@ -285,9 +285,10 @@ synthetic_source:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
foo: foo:
type: match_only_text type: match_only_text
@ -362,9 +363,10 @@ synthetic_source with copy_to:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
foo: foo:
type: match_only_text type: match_only_text

View file

@ -7,9 +7,10 @@ setup:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
pagerank: pagerank:
type: rank_feature type: rank_feature

View file

@ -7,9 +7,10 @@ setup:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
tags: tags:
type: rank_features type: rank_features

View file

@ -7,9 +7,10 @@ setup:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
a_field: a_field:
type: search_as_you_type type: search_as_you_type

View file

@ -42,9 +42,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
count: count:
type: token_count type: token_count

View file

@ -7,9 +7,10 @@ supported:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
join_field: join_field:
type: join type: join

View file

@ -137,9 +137,10 @@
indices.create: indices.create:
index: queries_index index: queries_index
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
query: query:
type: percolator type: percolator

View file

@ -3,9 +3,10 @@ setup:
indices.create: indices.create:
index: synthetic index: synthetic
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword

View file

@ -3,9 +3,10 @@ update:
indices.create: indices.create:
index: synthetic index: synthetic
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword

View file

@ -8,9 +8,10 @@ keywords:
indices.create: indices.create:
index: index1 index: index1
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
field1: field1:
type: keyword type: keyword
@ -76,9 +77,10 @@ doubles:
indices.create: indices.create:
index: index1 index: index1
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
field1: field1:
type: double type: double

View file

@ -10,9 +10,10 @@ stored annotated_text field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
annotated_text: annotated_text:
type: annotated_text type: annotated_text
@ -40,9 +41,10 @@ annotated_text field with keyword multi-field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
annotated_text: annotated_text:
type: annotated_text type: annotated_text
@ -72,9 +74,10 @@ multiple values in stored annotated_text field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
annotated_text: annotated_text:
type: annotated_text type: annotated_text
@ -102,9 +105,10 @@ multiple values in annotated_text field with keyword multi-field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
annotated_text: annotated_text:
type: annotated_text type: annotated_text
@ -135,9 +139,10 @@ multiple values in annotated_text field with stored keyword multi-field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
annotated_text: annotated_text:
type: annotated_text type: annotated_text
@ -169,9 +174,10 @@ multiple values in stored annotated_text field with keyword multi-field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
annotated_text: annotated_text:
type: annotated_text type: annotated_text
@ -202,9 +208,10 @@ fallback synthetic source:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
annotated_text: annotated_text:
type: annotated_text type: annotated_text

View file

@ -134,9 +134,10 @@ setup:
indices.create: indices.create:
index: test_synthetic_source index: test_synthetic_source
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
foo: foo:
type: keyword type: keyword

View file

@ -7,9 +7,10 @@ keyword:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -48,9 +49,8 @@ fetch without refresh also produces synthetic source:
settings: settings:
index: index:
refresh_interval: -1 refresh_interval: -1
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
obj: obj:
properties: properties:
@ -90,9 +90,10 @@ force_synthetic_source_ok:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: stored
mappings: mappings:
_source:
mode: stored
properties: properties:
obj: obj:
properties: properties:
@ -139,9 +140,10 @@ stored text:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
text: text:
type: text type: text
@ -212,9 +214,10 @@ stored keyword:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -253,9 +256,10 @@ doc values keyword with ignore_above:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -336,9 +340,10 @@ stored keyword with ignore_above:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -421,9 +426,10 @@ indexed dense vectors:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -465,9 +471,10 @@ non-indexed dense vectors:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -508,9 +515,10 @@ _source filtering:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -550,9 +558,9 @@ _doc_count:
indices.create: indices.create:
index: test index: test
body: body:
mappings: settings:
_source: index:
mode: synthetic mapping.source.mode: synthetic
# with _doc_count # with _doc_count
- do: - do:
@ -679,9 +687,10 @@ fields with ignore_malformed:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
ip: ip:
type: ip type: ip
@ -914,9 +923,10 @@ flattened field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
flattened: flattened:
type: flattened type: flattened
@ -1006,9 +1016,10 @@ flattened field with ignore_above:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
field: field:
type: flattened type: flattened
@ -1061,9 +1072,10 @@ flattened field with ignore_above and arrays:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
field: field:
type: flattened type: flattened
@ -1117,9 +1129,10 @@ completion:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
completion: completion:
type: completion type: completion

View file

@ -11,13 +11,11 @@ object with unmapped fields:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
total_fields: total_fields:
ignore_dynamic_beyond_limit: true ignore_dynamic_beyond_limit: true
limit: 1 limit: 1
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -64,13 +62,12 @@ unmapped arrays:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
total_fields: total_fields:
ignore_dynamic_beyond_limit: true ignore_dynamic_beyond_limit: true
limit: 1 limit: 1
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -111,13 +108,12 @@ nested object with unmapped fields:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
total_fields: total_fields:
ignore_dynamic_beyond_limit: true ignore_dynamic_beyond_limit: true
limit: 3 limit: 3
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
properties: properties:
@ -163,13 +159,12 @@ empty object with unmapped fields:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
total_fields: total_fields:
ignore_dynamic_beyond_limit: true ignore_dynamic_beyond_limit: true
limit: 3 limit: 3
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
properties: properties:
@ -205,9 +200,10 @@ disabled root object:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
enabled: false enabled: false
- do: - do:
@ -242,9 +238,10 @@ disabled object:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
enabled: false enabled: false
@ -279,9 +276,10 @@ disabled object contains array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
enabled: false enabled: false
@ -319,9 +317,10 @@ disabled subobject:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
properties: properties:
@ -357,9 +356,10 @@ disabled subobject with array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
properties: properties:
@ -396,9 +396,10 @@ mixed disabled and enabled objects:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
properties: properties:
@ -442,9 +443,10 @@ object with dynamic override:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path_no: path_no:
dynamic: false dynamic: false
@ -489,9 +491,10 @@ subobject with dynamic override:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
properties: properties:
@ -537,9 +540,10 @@ object array in object with dynamic override:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -591,9 +595,10 @@ value array in object with dynamic override:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path_no: path_no:
dynamic: false dynamic: false
@ -634,9 +639,10 @@ nested object:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
nested_field: nested_field:
type: nested type: nested
@ -679,9 +685,10 @@ nested object next to regular:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
path: path:
properties: properties:
@ -725,9 +732,10 @@ nested object with disabled:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
obj_field: obj_field:
properties: properties:
@ -813,9 +821,10 @@ doubly nested object:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
obj_field: obj_field:
properties: properties:
@ -908,9 +917,10 @@ subobjects auto:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
subobjects: auto subobjects: auto
properties: properties:
id: id:
@ -996,9 +1006,10 @@ synthetic_source with copy_to:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
number: number:
type: integer type: integer
@ -1132,9 +1143,10 @@ synthetic_source with disabled doc_values:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
number: number:
type: integer type: integer
@ -1215,9 +1227,10 @@ fallback synthetic_source for text field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
text: text:
type: text type: text
@ -1249,9 +1262,10 @@ synthetic_source with copy_to and ignored values:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -1317,9 +1331,10 @@ synthetic_source with copy_to field having values in source:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -1380,9 +1395,10 @@ synthetic_source with ignored source field using copy_to:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -1444,9 +1460,10 @@ synthetic_source with copy_to field from dynamic template having values in sourc
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
dynamic_templates: dynamic_templates:
- copy_template: - copy_template:
match: "k" match: "k"
@ -1541,9 +1558,10 @@ synthetic_source with copy_to and invalid values for copy:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -1577,9 +1595,10 @@ synthetic_source with copy_to pointing inside object:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -1681,9 +1700,10 @@ synthetic_source with copy_to pointing to ambiguous field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
k: k:
type: keyword type: keyword
@ -1728,9 +1748,10 @@ synthetic_source with copy_to pointing to ambiguous field and subobjects false:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
subobjects: false subobjects: false
properties: properties:
k: k:
@ -1776,9 +1797,10 @@ synthetic_source with copy_to pointing to ambiguous field and subobjects auto:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
subobjects: auto subobjects: auto
properties: properties:
k: k:
@ -1825,9 +1847,10 @@ synthetic_source with copy_to pointing at dynamic field:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -1911,9 +1934,10 @@ synthetic_source with copy_to pointing inside dynamic object:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword

View file

@ -8,9 +8,10 @@ object param - store complex object:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -72,9 +73,10 @@ object param - object array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -136,9 +138,10 @@ object param - object array within array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
stored: stored:
synthetic_source_keep: arrays synthetic_source_keep: arrays
@ -179,9 +182,10 @@ object param - no object array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
stored: stored:
synthetic_source_keep: arrays synthetic_source_keep: arrays
@ -221,9 +225,10 @@ object param - field ordering in object array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
a: a:
type: keyword type: keyword
@ -270,9 +275,10 @@ object param - nested object array next to other fields:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
a: a:
type: keyword type: keyword
@ -326,9 +332,10 @@ object param - nested object with stored array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -378,9 +385,10 @@ index param - nested array within array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -428,9 +436,9 @@ index param - nested array within array - disabled second pass:
index: index:
synthetic_source: synthetic_source:
enable_second_doc_parsing_pass: false enable_second_doc_parsing_pass: false
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -478,9 +486,8 @@ stored field under object with store_array_source:
index: index:
sort.field: "name" sort.field: "name"
sort.order: "asc" sort.order: "asc"
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -525,9 +532,10 @@ field param - keep root array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -582,9 +590,10 @@ field param - keep nested array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -650,9 +659,10 @@ field param - keep root singleton fields:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -739,9 +749,10 @@ field param - keep nested singleton fields:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -820,9 +831,10 @@ field param - nested array within array:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -866,10 +878,9 @@ index param - root arrays:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -945,10 +956,9 @@ index param - dynamic root arrays:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
id: id:
type: integer type: integer
@ -998,10 +1008,9 @@ index param - object array within array:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
stored: stored:
properties: properties:
@ -1048,10 +1057,9 @@ index param - no object array:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
stored: stored:
properties: properties:
@ -1093,10 +1101,9 @@ index param - field ordering:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
a: a:
type: keyword type: keyword
@ -1144,10 +1151,9 @@ index param - nested arrays:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
a: a:
type: keyword type: keyword
@ -1212,10 +1218,9 @@ index param - nested object with stored array:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -1264,10 +1269,9 @@ index param - flattened fields:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
synthetic_source_keep: arrays synthetic_source_keep: arrays
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword

View file

@ -145,28 +145,6 @@
- is_false: test_index.mappings.properties.foo.meta.bar - is_false: test_index.mappings.properties.foo.meta.bar
- match: { test_index.mappings.properties.foo.meta.baz: "quux" } - match: { test_index.mappings.properties.foo.meta.baz: "quux" }
---
"disabling synthetic source fails":
- requires:
cluster_features: ["gte_v8.4.0"]
reason: "Added in 8.4.0"
- do:
indices.create:
index: test_index
body:
mappings:
_source:
mode: synthetic
- do:
catch: /Cannot update parameter \[mode\] from \[synthetic\] to \[stored\]/
indices.put_mapping:
index: test_index
body:
_source:
mode: stored
--- ---
"enabling synthetic source from explicit succeeds": "enabling synthetic source from explicit succeeds":
- requires: - requires:
@ -177,9 +155,9 @@
indices.create: indices.create:
index: test_index index: test_index
body: body:
mappings: settings:
_source: index:
mode: stored mapping.source.mode: stored
- do: - do:
indices.put_mapping: indices.put_mapping:

View file

@ -30,9 +30,7 @@ stored _source mode is supported:
settings: settings:
index: index:
mode: logsdb mode: logsdb
mappings: mapping.source.mode: stored
_source:
mode: stored
- do: - do:
indices.get: indices.get:
index: test-stored-source index: test-stored-source
@ -69,9 +67,7 @@ disabled _source is not supported:
settings: settings:
index: index:
mode: logsdb mode: logsdb
mappings: mapping.source.mode: disabled
_source:
mode: disabled
- match: { error.type: "mapper_parsing_exception" } - match: { error.type: "mapper_parsing_exception" }
- match: { error.root_cause.0.type: "mapper_parsing_exception" } - match: { error.root_cause.0.type: "mapper_parsing_exception" }
@ -120,9 +116,9 @@ include/exclude is supported with stored _source:
settings: settings:
index: index:
mode: logsdb mode: logsdb
mapping.source.mode: stored
mappings: mappings:
_source: _source:
mode: stored
includes: [a] includes: [a]
- do: - do:
@ -139,9 +135,9 @@ include/exclude is supported with stored _source:
settings: settings:
index: index:
mode: logsdb mode: logsdb
mapping.source.mode: stored
mappings: mappings:
_source: _source:
mode: stored
excludes: [b] excludes: [b]
- do: - do:

View file

@ -7,9 +7,10 @@ keyword:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -62,9 +63,9 @@ keyword with normalizer:
type: custom type: custom
filter: filter:
- lowercase - lowercase
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
keyword: keyword:
type: keyword type: keyword
@ -144,9 +145,10 @@ stored text:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
text: text:
type: text type: text
@ -193,9 +195,10 @@ force_synthetic_source_ok:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: stored
mappings: mappings:
_source:
mode: stored
properties: properties:
obj: obj:
properties: properties:

View file

@ -9,9 +9,9 @@ setup:
body: body:
settings: settings:
number_of_shards: 1 number_of_shards: 1
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
foo: foo:
type: keyword type: keyword
@ -21,6 +21,7 @@ setup:
index_options: positions index_options: positions
vectors: vectors:
type: text type: text
store: false
term_vector: with_positions_offsets term_vector: with_positions_offsets
positions: positions:
type: text type: text

View file

@ -394,9 +394,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
ml.tokens: ml.tokens:
type: sparse_vector type: sparse_vector

View file

@ -55,9 +55,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
binary: binary:
type: binary type: binary

View file

@ -7,9 +7,10 @@ keyword:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -44,9 +45,10 @@ stored text:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
text: text:
type: text type: text
@ -83,8 +85,6 @@ stored keyword:
index: test index: test
body: body:
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -120,9 +120,10 @@ stored keyword without sibling fields:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -165,9 +166,10 @@ force_synthetic_source_ok:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: stored
mappings: mappings:
_source:
mode: stored
properties: properties:
obj: obj:
properties: properties:
@ -218,9 +220,10 @@ doc values keyword with ignore_above:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -286,9 +289,10 @@ stored keyword with ignore_above:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -356,9 +360,10 @@ _source filtering:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -397,9 +402,9 @@ _doc_count:
indices.create: indices.create:
index: test index: test
body: body:
mappings: settings:
_source: index:
mode: synthetic mapping.source.mode: synthetic
- do: - do:
index: index:

View file

@ -10,10 +10,9 @@ ignore_above mapping level setting:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
ignore_above: 10 ignore_above: 10
mappings: mappings:
_source:
mode: synthetic
properties: properties:
keyword: keyword:
type: keyword type: keyword
@ -53,10 +52,9 @@ ignore_above mapping level setting on arrays:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
ignore_above: 10 ignore_above: 10
mappings: mappings:
_source:
mode: synthetic
properties: properties:
keyword: keyword:
type: keyword type: keyword
@ -97,10 +95,9 @@ ignore_above mapping overrides setting:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
ignore_above: 10 ignore_above: 10
mappings: mappings:
_source:
mode: synthetic
properties: properties:
keyword: keyword:
type: keyword type: keyword
@ -143,10 +140,9 @@ ignore_above mapping overrides setting on arrays:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
ignore_above: 10 ignore_above: 10
mappings: mappings:
_source:
mode: synthetic
properties: properties:
keyword: keyword:
type: keyword type: keyword

View file

@ -472,9 +472,9 @@ stored source is supported:
time_series: time_series:
start_time: 2021-04-28T00:00:00Z start_time: 2021-04-28T00:00:00Z
end_time: 2021-04-29T00:00:00Z end_time: 2021-04-29T00:00:00Z
mapping:
source.mode: stored
mappings: mappings:
_source:
mode: stored
properties: properties:
"@timestamp": "@timestamp":
type: date type: date
@ -510,9 +510,9 @@ disabled source is not supported:
time_series: time_series:
start_time: 2021-04-28T00:00:00Z start_time: 2021-04-28T00:00:00Z
end_time: 2021-04-29T00:00:00Z end_time: 2021-04-29T00:00:00Z
mapping:
source.mode: disabled
mappings: mappings:
_source:
mode: disabled
properties: properties:
"@timestamp": "@timestamp":
type: date type: date

View file

@ -7,9 +7,10 @@ keyword:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
kwd: kwd:
type: keyword type: keyword
@ -65,9 +66,10 @@ stored text:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
text: text:
type: text type: text

View file

@ -6,9 +6,10 @@ setup:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
object: object:
enabled: false enabled: false

View file

@ -7,9 +7,10 @@ constant_keyword:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
const_kwd: const_kwd:
type: constant_keyword type: constant_keyword

View file

@ -7,9 +7,10 @@ synthetic source:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -52,9 +53,10 @@ synthetic source with copy_to:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -111,9 +113,10 @@ synthetic source with disabled doc_values:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword

View file

@ -7,9 +7,10 @@ setup:
indices.create: indices.create:
index: test1 index: test1
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
ver: ver:
type: version type: version
@ -76,9 +77,10 @@ synthetic source with copy_to:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
ver: ver:
type: version type: version

View file

@ -7,9 +7,10 @@ aggregate_metric_double:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
metric: metric:
type: aggregate_metric_double type: aggregate_metric_double
@ -62,9 +63,10 @@ aggregate_metric_double with ignore_malformed:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
metric: metric:
type: aggregate_metric_double type: aggregate_metric_double

View file

@ -182,9 +182,10 @@ histogram with synthetic source:
indices.create: indices.create:
index: histo_synthetic index: histo_synthetic
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
latency: latency:
type: histogram type: histogram
@ -228,9 +229,10 @@ histogram with synthetic source and zero counts:
indices.create: indices.create:
index: histo_synthetic index: histo_synthetic
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
latency: latency:
type: histogram type: histogram
@ -317,9 +319,10 @@ histogram with synthetic source and ignore_malformed:
indices.create: indices.create:
index: histo_synthetic index: histo_synthetic
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
latency: latency:
type: histogram type: histogram

View file

@ -4,9 +4,10 @@ setup:
indices.create: indices.create:
index: source index: source
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
baz: baz:
type: keyword type: keyword

View file

@ -809,9 +809,10 @@ synthetic _source text stored:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
card: card:
type: text type: text
@ -840,9 +841,10 @@ synthetic _source text with parent keyword:
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
card: card:
type: keyword type: keyword

View file

@ -481,9 +481,10 @@ setup:
indices.create: indices.create:
index: test2 index: test2
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
"emp_no": "emp_no":
type: long type: long
@ -526,9 +527,10 @@ setup:
indices.create: indices.create:
index: test2 index: test2
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
"emp_no": "emp_no":
type: long type: long

View file

@ -11,9 +11,9 @@ setup:
settings: settings:
number_of_shards: 1 number_of_shards: 1
number_of_replicas: 0 number_of_replicas: 0
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
obj: obj:
properties: properties:

View file

@ -13,9 +13,10 @@ Filter single field:
indices.create: indices.create:
index: index_fls index: index_fls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -75,9 +76,10 @@ Filter fields in object:
indices.create: indices.create:
index: index_fls index: index_fls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -142,9 +144,10 @@ Fields under a disabled object - uses _ignored_source:
indices.create: indices.create:
index: index_fls index: index_fls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -236,12 +239,11 @@ Dynamic fields beyond limit - uses _ignored_source:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
total_fields: total_fields:
ignore_dynamic_beyond_limit: true ignore_dynamic_beyond_limit: true
limit: 2 limit: 2
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -301,9 +303,10 @@ Field with ignored_malformed:
indices.create: indices.create:
index: index_fls index: index_fls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword

View file

@ -13,9 +13,10 @@ Filter on single field:
indices.create: indices.create:
index: index_dls index: index_dls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -95,9 +96,10 @@ Filter on nested field:
indices.create: indices.create:
index: index_dls index: index_dls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -178,9 +180,10 @@ Filter on object with stored source:
indices.create: indices.create:
index: index_dls index: index_dls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -258,9 +261,10 @@ Filter on field within a disabled object:
indices.create: indices.create:
index: index_dls index: index_dls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -335,9 +339,10 @@ Filter on field with ignored_malformed:
indices.create: indices.create:
index: index_dls index: index_dls
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword

View file

@ -100,12 +100,11 @@ setup:
indices.create: indices.create:
index: test_synthetic index: test_synthetic
body: body:
mappings:
_source:
mode: synthetic
settings: settings:
number_of_shards: 1 number_of_shards: 1
number_of_replicas: 0 number_of_replicas: 0
index:
mapping.source.mode: synthetic
- do: - do:
snapshot.create: snapshot.create:

View file

@ -8,9 +8,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
shape: shape:
type: geo_shape type: geo_shape
@ -74,9 +75,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
shape: shape:
type: geo_shape type: geo_shape
@ -157,9 +159,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
shape: shape:
type: shape type: shape
@ -223,9 +226,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
shape: shape:
type: shape type: shape
@ -306,9 +310,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
point: point:
type: geo_point type: geo_point
@ -422,9 +427,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
geo_point: geo_point:
type: geo_point type: geo_point
@ -501,9 +507,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
point: point:
type: point type: point
@ -597,9 +604,10 @@
indices.create: indices.create:
index: test index: test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
point: point:
type: point type: point

View file

@ -6,9 +6,10 @@ simple:
indices.create: indices.create:
index: airline-data index: airline-data
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
time: time:
type: date type: date

View file

@ -10,10 +10,9 @@ wildcard field type ignore_above:
settings: settings:
index: index:
mapping: mapping:
source.mode: synthetic
ignore_above: 10 ignore_above: 10
mappings: mappings:
_source:
mode: synthetic
properties: properties:
a_wildcard: a_wildcard:
type: wildcard type: wildcard

View file

@ -7,9 +7,10 @@ synthetic source:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword
@ -48,9 +49,10 @@ synthetic source with copy_to:
indices.create: indices.create:
index: synthetic_source_test index: synthetic_source_test
body: body:
settings:
index:
mapping.source.mode: synthetic
mappings: mappings:
_source:
mode: synthetic
properties: properties:
name: name:
type: keyword type: keyword