ChrisSamo632 commented on PR #6628:
URL: https://github.com/apache/nifi/pull/6628#issuecomment-1308978863

   > > Or have you tried it and found something not working/you think could be 
improved?
   > 
   > My vision for that processor would be a query builder that allows you to 
break down the process. Ex specifying the script or script id and then the 
update query. That combined with the ability to just use the flowfile body as a 
raw document to punt to update_by_query.
   
   That (to me) sounds like a (potentially breaking) change to the processor's 
API, best left to another ticket/discussion
   
   I'm happy to update the existing processor's documentation to clarify that 
the `query` property for `UpdateByQuery` is currently the request body that's 
sent to Elasticsearch for the `_update_by_query` endpoint, i.e. if you want to 
run a Script, write your JSON like `{"script": {"source": "..."}, "query": 
{"match_all":{}}}`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to