Skip to content

Simulate mapping changes #128760

Open
Open
@flash1293

Description

@flash1293

Description

The ingest simulate API returns the resulting doc after all ingest pipelines are applied and eventual mapping errors.

However, the resulting mappings are not returned to the user. As there are a bunch of features that can influence how mappings turn out (dynamic templates, component templates with priorities, index templates with priorities), it's not trivial for a user to infer this manual and it would be great if the existing simulate ingest API could also return the resulting mapping of the eventual target index after a set of documents would have been indexed.

For example, when I'm sending a doc like

{
  "client.ip": "1.2.3.4.5"
}

it's not trivial to tell whether client.ip will be mapped as a keyword or as an ip, but it's a very important piece of information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions