-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dot-kibana-split] Update dynamic mappings.json to include the `index…
…TypesMap` (#154892) Part of #154888 Some mappings.json use a special `$KIBANA_PACKAGE_VERSION` variable. ES archiver uses this variable to generate saved object indices with names that match the current stack version. Note that this a bit brittle, cause incompatible mappings changes would break Kibana. However, it allows skipping reindexing and saving some precious CI time when running tests. With the introduction of the .kibana split, the mappings `_meta` information now contain a new property, called `indexTypesMap`, which holds a list of the SO types that are part of each index. If the list is not present, the migration logic assumes that the .kibana index must be split (and its documents redistributed), and it forces a reindex. The goal of this PR is to enrich the `mappings.json` with that extra property, so that the migrator logic will not trigger a reindex. - Thus, these mappings must be updated whenever existing types are moved to a separate index, or new types are added. - Ideally, we should also update the corresponding `data.json` files, to place each SO document to the appropriate index.
- Loading branch information
1 parent
e9ee758
commit e13e3cb
Showing
11 changed files
with
994 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.