-- 根据多个条件条件 批量修改字段属性 update elk ctx._source.xxx 是修改字段的固定写法 POST saas_index/_update_by_query { "script": { "source": "ctx._source.marketable='false';", "lang": "painless" }, "query": { "bool": { "must": [ { "match": { "cat_id": "1" }}, { "match": { "store_id": "472" }} ] } } } -- 根据id 批量修改字段属性 update elk ctx._source.xxx 是修改字段的固定写法 xxx是需要修改的字段 POST test_index/_update_by_query { "script": { "source": "ctx._source.marketable='false';", "lang": "painless" }, "query": { "term": { "goods_id": { "value": "123126637551" } } } } } -- 删除指定字段 POST test_index/_update_by_query { "script":{ "lang":"painless", "inline":"ctx._source.remove(\"dept_name\")" }
- 字段 update_by_query elasticSearch kibana update字段update_by_query elasticsearch kibana update_by_query kibana update query update update_by_query elasticsearch文档 update_by_query update_by_query update query es elasticsearch docker kibana elasticsearch索引kibana elasticsearch kibana elasticsearch logstash kibana平台 elasticsearch logstash windows kibana