josephxsxn

nifi putMongo note

Sep 12th, 2018 (edited)
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. ​With the putMongo processor the updateQuery is like a find() in the mongo CLI, all documents that match the find will be replaced with the flowfile content. The update mode has 2 choices; whole document or with operators. If your updating the entire document it expects the json to be properly formated. The UpdateQuery will return to this processor the documents which need to be completely replaced with the incoming FlowFile content.  If your using this with operators its expected that the FlowFile content ONLY be the operator part you need is {$set: {"f1": "val1"} , $inc :{ "count" : 10}}, it doesnt not support the find() portion that you would expect in the CLI, that part is the 'UpdateQuery'
Advertisement
Add Comment
Please, Sign In to add comment