Skip to content

Add support for is_write_index #3686

@octocat-mona

Description

@octocat-mona

Describe the feature:

Allow setting of is_write_index for Create Index and Index Aliases API's which can be used by the Rollover API.

This seems currently not supported:

await client.CreateIndexAsync("my-index", s => s
    .Aliases(a => a
        .Alias("my-alias", d => d
            .IsWriteIndex() // <-- Method doesn't exist, only Filter() etc
        )
    )
);

Call via ES API:

PUT my-index
{
  "aliases": {
    "my-alias": {
      "is_write_index": true
    }
  }
}

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