Skip to content

Conversation

@dakrone
Copy link
Member

@dakrone dakrone commented Apr 22, 2020

This commit changes the way that V2 index, component, and request mappings are merged. Specifically:

  • Fields are merged in a "replacement" manner, meaning that the entire definition is replaced rather
    than merging the interior configuration
  • Mapping metadata (all fields outside of properties) are merged recursively.

The merging for V1 templates does not change.

Relates to #53101

…c#55607)

This commit changes the way that V2 index, component, and request mappings are merged. Specifically:

- Fields are merged in a "replacement" manner, meaning that the entire definition is replaced rather
than merging the interior configuration
- Mapping metadata (all fields outside of `properties`) are merged recursively.

The merging for V1 templates does not change.

Relates to elastic#53101
@dakrone dakrone added :Data Management/Indices APIs APIs to create and manage indices and templates backport v7.8.0 labels Apr 22, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

@dakrone dakrone changed the title Merge V2 index/component template mappings in specific manner (#55607) [7.x] Merge V2 index/component template mappings in specific manner (#55607) Apr 22, 2020
@dakrone dakrone merged commit 86129fb into elastic:7.x Apr 22, 2020
@dakrone dakrone deleted the backport/7.x/pr-55607 branch April 22, 2020 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Data Management/Indices APIs APIs to create and manage indices and templates v7.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants