I use the following query to update some weight filed in matched docs. I need to get the list of updated docs id but I don't know how to do that?
POST v1_shingle_analyzer/_update_by_query
{
"script" : {
"source": "ctx._source.content_completion.weight ++",
"lang": "painless",
"_source":true,
"_source_includes":"_id"
},
"query": {
"ids": {
"values": ["ad22784cde0cecab176811ca9d77e7c2","dssdg784cde0cecab176811ca9fgdfg"]
}
}
}