Skip to content

Commit c056152

Browse files
Add false_allow_templates to DynamicMapping
Signed-off-by: Juan Versolato Lopes <juan.versolato@atlas.red>
1 parent 5691b4a commit c056152

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
4444
- Added `query` to TermsLookup to support terms lookup by query
4545
- Added `mapper_type` and `mapper_settings` to `IngestionSource` index settings ([#1155](https://github.com/opensearch-project/opensearch-api-specification/pull/1155))
4646
- Added `search` and `warm` node roles to `NodeRole`, and modeled the pre-3.0 `search` role (renamed to `warm` in 3.0) as a version-scoped branch ([#1006](https://github.com/opensearch-project/opensearch-api-specification/pull/1006))
47+
- Added `false_allow_templates` to `DynamicMapping` ([#1178](https://github.com/opensearch-project/opensearch-api-specification/pull/1178))
4748

4849
### Deprecated
4950
- Marked the plural `_aliases` URL forms of `put_alias` and `delete_alias` as deprecated; the singular `_alias` form is the canonical path ([#1131](https://github.com/opensearch-project/opensearch-api-specification/pull/1131))

spec/schemas/_common.mapping.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ components:
8686
- type: string
8787
enum:
8888
- 'false'
89+
- false_allow_templates
8990
- strict
9091
- strict_allow_templates
9192
- 'true'

tests/default/indices/mapping/mapping.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,21 @@ chapters:
148148
status: 200
149149
payload:
150150
acknowledged: true
151+
- synopsis: Update mapping for an index with setting dynamic to `false_allow_templates`.
152+
version: '>= 3.3'
153+
path: /{index}/_mapping
154+
method: PUT
155+
parameters:
156+
index: movies
157+
allow_no_indices: true
158+
expand_wildcards: all
159+
ignore_unavailable: true
160+
timeout: 10s
161+
write_index_only: true
162+
request:
163+
payload:
164+
dynamic: false_allow_templates
165+
response:
166+
status: 200
167+
payload:
168+
acknowledged: true

0 commit comments

Comments
 (0)