Hi Team,
I am performing conditional update operation on elastic search doc. How i do is:
- I create a query which has conditions on doc level for filtering
- I use groovy script to update some of the fields conditionally
eg: say if doc. date>current_time--> set this value
It works fine. Now the problem is , if query in step 1 returns no doc, step 2 is skipped.
I want to throw exception in this case. How is it possible.