简体   繁体   中英

Is it possible to update index settings by query?

I updated the index settings from readonly to writable by running this command:

PUT index_name*/_settings
{
  "index.blocks.write": null
}

However, I'd like to rever this to readonly for some documents within the index. Is it possible to update the settings for specific documents?

No, this is an index-wide setting. You've set it on multiple indices using the index_name* wildcard so the only thing you can do now is unset it either using the same wildcard or by targeting an individual index.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM