I'd like to have a series of mutators that iterate over an index and mutates it, (inserts new fields to the documents , or inserts new documents). Right now we have these pieces of functionality as standalone apps that just call es and scroll over the results of the query they issue, then issue write commands. I was wondering whether it would be more efficient though to run this logic on the es nodes themselves, a bit like something like accumulo does with it's server side iterators. I saw that you can route to local nodes
My next thought was whether I could do all this in an es plugin. (ie. iterate and mutate etc , but from the plugin)
I am curious to know what the best practice for this sort of large scale index mutation is ?