Skip to content

Commit

Permalink
[TEST] Replace _source.mode with index.mapping.source.mode in integra…
Browse files Browse the repository at this point in the history
…tion tests (#115926)

* Replace _source.mode with index.mapping.source.mode in integration tests

* fix tests

* revert 40_source_mode_setting.yml
  • Loading branch information
kkrik-es authored Nov 1, 2024
1 parent 0a5b1c6 commit a360757
Show file tree
Hide file tree
Showing 44 changed files with 436 additions and 357 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,10 @@ synthetic _source:
indices.create:
index: test_synthetic
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
page:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ setup:
body:
settings:
number_of_shards: 1
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
boolean:
type: boolean
Expand Down Expand Up @@ -5630,9 +5630,9 @@ version and sequence number synthetic _source:
body:
settings:
number_of_shards: 1
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
keyword:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,10 @@ synthetic_source:
indices.create:
index: synthetic_source_test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
foo:
type: match_only_text
Expand Down Expand Up @@ -362,9 +363,10 @@ synthetic_source with copy_to:
indices.create:
index: synthetic_source_test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
foo:
type: match_only_text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ setup:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
pagerank:
type: rank_feature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ setup:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
tags:
type: rank_features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ setup:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
a_field:
type: search_as_you_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
count:
type: token_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ supported:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
join_field:
type: join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@
indices.create:
index: queries_index
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
query:
type: percolator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ setup:
indices.create:
index: synthetic
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
kwd:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ update:
indices.create:
index: synthetic
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
kwd:
type: keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ keywords:
indices.create:
index: index1
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
field1:
type: keyword
Expand Down Expand Up @@ -76,9 +77,10 @@ doubles:
indices.create:
index: index1
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
field1:
type: double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ stored annotated_text field:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
annotated_text:
type: annotated_text
Expand Down Expand Up @@ -40,9 +41,10 @@ annotated_text field with keyword multi-field:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
annotated_text:
type: annotated_text
Expand Down Expand Up @@ -72,9 +74,10 @@ multiple values in stored annotated_text field:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
annotated_text:
type: annotated_text
Expand Down Expand Up @@ -102,9 +105,10 @@ multiple values in annotated_text field with keyword multi-field:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
annotated_text:
type: annotated_text
Expand Down Expand Up @@ -135,9 +139,10 @@ multiple values in annotated_text field with stored keyword multi-field:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
annotated_text:
type: annotated_text
Expand Down Expand Up @@ -169,9 +174,10 @@ multiple values in stored annotated_text field with keyword multi-field:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
annotated_text:
type: annotated_text
Expand Down Expand Up @@ -202,9 +208,10 @@ fallback synthetic source:
indices.create:
index: test
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
annotated_text:
type: annotated_text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ setup:
indices.create:
index: test_synthetic_source
body:
settings:
index:
mapping.source.mode: synthetic
mappings:
_source:
mode: synthetic
properties:
foo:
type: keyword
Expand Down
Loading

0 comments on commit a360757

Please sign in to comment.