gresockj commented on code in PR #6628:
URL: https://github.com/apache/nifi/pull/6628#discussion_r1103862669
##########
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-restapi-processors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchRecord.java:
##########
@@ -190,6 +201,26 @@ public class PutElasticsearchRecord extends
AbstractPutElasticsearch {
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
.build();
+ static final PropertyDescriptor SCRIPT_RECORD_PATH = new
PropertyDescriptor.Builder()
+ .name("put-es-record-script-path")
+ .displayName("script Record Path")
Review Comment:
Perhaps capital S
##########
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-restapi-processors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchJson.java:
##########
@@ -87,6 +98,25 @@ public class PutElasticsearchJson extends
AbstractPutElasticsearch {
.addValidator(StandardValidators.ATTRIBUTE_KEY_VALIDATOR)
.build();
+ static final PropertyDescriptor SCRIPT = new PropertyDescriptor.Builder()
+ .name("put-es-json-script")
+ .displayName("Script")
+ .description("The script for the document update/upsert. Only
applies to Update/Upsert operations. " +
+ "Must be parsable as JSON Object. " +
+ "If left blank, the FlowFile content will be used for
document update/upsert")
+
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
+ .addValidator(StandardValidators.NON_BLANK_VALIDATOR)
+ .build();
+
+ static final PropertyDescriptor DYNAMIC_TEMPLATES = new
PropertyDescriptor.Builder()
+ .name("put-es-json-dynamic_templates")
+ .displayName("Script")
Review Comment:
I think this is a copy/paste error
--
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]