摘要: 1.update_by_query PUT myindex/_doc/1 { "name":"a" } POST myindex/_update_by_query { "script":{ "lang":"painless", "inline": "ctx._source.newfield='new 阅读全文
posted @ 2020-01-12 12:14 littlevigra 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1.对所有索引去只读 curl -XPUT -H 'Content-Type: application/json' http://192.168.1.156:9200/_settings -d ' { "index": { "blocks": { "read_only_allow_delete": 阅读全文
posted @ 2020-01-12 11:39 littlevigra 阅读(372) 评论(0) 推荐(0) 编辑