Here is my requirement.
This is what I need to do ...
if (indexedField1.value contains pattern1) indexedField1.value = newValue; add a new indexedField2
I do realize there is a programmatic way of doing this in Java for example:
1. Fetch only indexedField1 using _source filtering
2. Check the value
3. Create _bulk update and create statements
4. Execute the _bulk call
I wanted to verify if the above would work.
More importantly, is there a better way to do this, for example, entire within elastic search, hence more efficient?