You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mt...@apache.org on 2018/09/12 21:47:27 UTC
nifi git commit: Clarifying upsert query documentation for PutMongo
processor.
Repository: nifi
Updated Branches:
refs/heads/master 7e8b7752c -> e0f7f244b
Clarifying upsert query documentation for PutMongo processor.
This closes #2999
Signed-off-by: Mike Thomsen <mi...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/e0f7f244
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/e0f7f244
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/e0f7f244
Branch: refs/heads/master
Commit: e0f7f244b81a2ca0900c93117bb9b971c59ea14d
Parents: 7e8b775
Author: Vijeta <vh...@boardreader.com>
Authored: Wed Sep 12 13:19:35 2018 -0400
Committer: Mike Thomsen <mi...@gmail.com>
Committed: Wed Sep 12 17:46:43 2018 -0400
----------------------------------------------------------------------
.../java/org/apache/nifi/processors/mongodb/PutMongo.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/e0f7f244/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongo.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongo.java b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongo.java
index d02e22f..a62620f 100644
--- a/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongo.java
+++ b/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongo.java
@@ -112,8 +112,11 @@ public class PutMongo extends AbstractMongoProcessor {
.allowableValues(UPDATE_WITH_DOC, UPDATE_WITH_OPERATORS)
.defaultValue(UPDATE_WITH_DOC.getValue())
.description("Choose an update mode. You can either supply a JSON document to use as a direct replacement " +
- "or specify a document that contains update operators like $set and $unset")
- .build();
+ "or specify a document that contains update operators like $set, $unset, and $inc. " +
+ "When Operators mode is enabled, the flowfile content is expected to be the operator part " +
+ "for example: {$set:{\"key\": \"value\"},$inc:{\"count\":1234}} and the update query will come " +
+ "from the configured Update Query property.")
+ .build();
static final PropertyDescriptor CHARACTER_SET = new PropertyDescriptor.Builder()
.name("Character Set")
.description("The Character Set in which the data is encoded")