Skip to content

Include data stream level mappings in simulate index #131425

@flash1293

Description

@flash1293

The _index_template/_simulate_index API doesn't take data-stream level mappings into account, but it should:

# create data stream
PUT _data_stream/logs-test-abc

# add mappings
PUT _data_stream/logs-test-abc/_mappings
{
    "properties": {
        "x": {
            "type": "keyword"
        }
    }
}

# simulate the index - x is not there
POST _index_template/_simulate_index/logs-test-abc

# actually rollover the index
POST logs-test-abc/_rollover

# x is mapped as expected in the new write index
GET logs-test-abc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions