POST /index/_update_by_query
{
"script": {
"source": "ctx._source.isDisabledComment =false",
"lang": "painless"
},
"query": {
"match_all": {}
}
}
## example
curl --location --request POST 'localhost:9200/academyvideos/_update_by_query' \
--header 'Content-Type: application/json' \
--data-raw '{
"script": {
"source": "ctx._source.isDisabledComment =false",
"lang": "painless"
},
"query": {
"match_all": {}
}
}'