Hello,
I ran into an interesting case upon executing an update_by_query instruction.
First, I've executed the instruction with only the query field. As it is specified in the documentation, nothing happens with the data. The operation reports updates, but the matched documents aren't really updated as there is no statement demanding that.
Afterwards, I've added a _source field on the request body. After executing the query, I was a bit surprised to find out that the matched documents got deleted.
My question is: is this the expected behavior? I've read the docs, but I couldn't find out any clues on what should happen when using the _source field on an update_by_query.
For the _update instruction, the _source field behaves the same way as it behaves on the _search instruction.
Thank you in advance,
Ionut