**Problem Statement** :- Using _update_by_query not able to update the data at the source of index.

I have index with a name "poc" carries below data. I want to update the Color White with Red. To do so I am using following code to do

-Cond. 1.
So far updating documents successfully without changing their source via below code.

- Cond 2.

Using below code couldn't able to update the source data.