Skip to content

Can't make index readonly using UpdateSettings #308

Closed
@gershonsherman

Description

@gershonsherman

Hi,

Thanks again for Nest. We're getting a lot of use out of it.

I am trying to update an index's settings to make the index read only. UpdateSettings does return any error, but when I do GetIndexSettings again the IsReadOnly member is false.

based on the documentation I tried all of the following combinations:
settings.Add("index.blocks.read_only","true");
settings.Add("index.blocks.read_only","1");
settings.Add("blocks.read_only","true");
settings.Add("blocks.read_only","1");

without success

If I use
settings.Add("refresh_interval", "1s");
I do see that the setting is changed when I call GetIndexSettings

Thanks for your help,
Mark

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