Skip to content

Mappings: Ensure that reindexing is always possible #8142

@jpountz

Description

@jpountz

Our mappings are very permissive in terms of what can be enabled or disabled, and in particular it is possible to disable the _source. This can be problematic if at some point you need to perform a change that requires reindexing (eg. an analyzer change) because this means that the data needs to be pulled again from another data source.

Instead, we could disable some mappings options in order to make sure that we always have all the information needed to reindex (eg. with client helpers). Here are the settings that we would need to enforce:

  • _source is enabled and stored
  • _timestamp, _ttl, _routing, _parent are stored

Relates to #8870

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions