Skip to content

CreateIndex doesn't return index name #3823

Closed
@octocat-mona

Description

@octocat-mona

NEST/Elasticsearch.Net version:
6.8.0

Elasticsearch version:
6.8.0

Describe the feature:
Currently CreateIndexAsync returns an ICreateIndexResponse which includes the ShardsAcknowledged and Acknowledged properties but not the index name as returned in the json response:

{
  "acknowledged" : true,
  "shards_acknowledged" : true,
  "index" : "my-index-2019.06.17-000001"
}

This is useful when indices are created using Date Math patterns like %3Cmy-index-%7Bnow%2Fd%7D-000001%3E so the date doesn't has to be calculated again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions