Github user ijokarumawak commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2199#discussion_r144533090
  
    --- Diff: 
nifi-nar-bundles/nifi-solr-bundle/nifi-solr-processors/src/main/java/org/apache/nifi/processors/solr/GetSolr.java
 ---
    @@ -66,42 +79,64 @@
     import org.apache.solr.common.SolrDocument;
     import org.apache.solr.common.SolrDocumentList;
     import org.apache.solr.common.SolrInputDocument;
    +import org.apache.solr.common.params.CursorMarkParams;
     
    -@Tags({"Apache", "Solr", "Get", "Pull"})
    +@Tags({"Apache", "Solr", "Get", "Pull", "Records"})
     @InputRequirement(Requirement.INPUT_FORBIDDEN)
    -@CapabilityDescription("Queries Solr and outputs the results as a 
FlowFile")
    +@CapabilityDescription("Queries Solr and outputs the results as a FlowFile 
in the format of XML or using a Record Writer")
    +@Stateful(scopes = {Scope.LOCAL}, description = "Stores latest date of 
Date Field so that the same data will not be fetched multiple times.")
    --- End diff --
    
    State scope should be CLUSTER, I think. Also, capability description should 
mention that this processor is designed to run on Primary Node only. Please 
refer ListHDFS processor documentation.
    
    Or does this processor work nicely in distributed fashion by utilizing 
multiple NiFi nodes against a Solr cluster?


---

Reply via email to