Where to set destructive_requires_name


(snigdha) #1

Hi All,

I am new to Elasticsearch. I am currently trying to disable delete* and I read in the documentation that in order to do that I need to set destructive_requires_name to true. I wrote the following code using Nest client-

            .Settings(s => s
            .Setting("index.mapping.depth.limit", 22)
            .Setting("action.destructive_requires_name", true)

However got the following error-
unknown setting [index.action.destructive_requires_name] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

It's obvious from the error that it's not the correct way, but unfortunately I couldn't find how can I set it right. Can anyone please help?

Tia!


(Thiago Souza) #2

This is a setting that goes into elasticsearch.yml


(snigdha) #3

Thanks Thiago! Do I need to recreate indices, in order to apply this setting?


(Thiago Souza) #4

No. This setting is not bound to any index, it works at cluster level. It tells Elasticsearch to only accept explicit names when deleting indices.


(snigdha) #5

Cool. Thank you!


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.