We have a use case that is coming up soon that might require us to build
some new processors that target Elastic update functionality. The first one
would be something like a UpdateElasticsearchByQueryRecord processor that
would have a record path statement that would allow you to find the _id
field and build a JSON query like this:

{
   "script": {
     "id": "some-update-function",
     "params": {
       "newTag": ["accounting_data"]
     }
   },
   "query": {
     "_id": {
       "terms": ["A", "b", "c"]
     }
   }
}

Does anyone have any generalizable needs around elastic scripts for updates
that can be recommended for consideration here? If/when we write this
processor, it would be with an eye to open source it.

Thanks,

Mike

Reply via email to