Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to modify custom component

Hi Team,

I need to modify tRapidSolrInsert component. my requirement is, i need to add new parameters in component and need to add below code in component code.

I am able to add and display parameters but it's not working. Please help me with this issue. We are using this parameters to insert parameter values in solr.

 

Code to add:

UpdateRequest updateRequest = new UpdateRequest();

                                                updateRequest.setParam("batchid",batchName + "_" + batchCount);

                                                updateRequest.setParam("source",source);

                                                updateRequest.setParam("jobid",jobid);                                               

                                                updateRequest.add(docsList);

                                                //updateRequest.setCommitWithin(1000);

                                                updateRequest.process(destSolrclient);

 

Thanks,

Bhushan Pande.

 

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Attaching updated component related files code below.  please look into this code and let me know how to update code as per my requirement.

 

Code of component with file name:

 

tRapidSolrInsert1_Test_java.xml:--

 

<?xml version="1.0" encoding="UTF-8"?>

<COMPONENT>
<HEADER AUTHOR="THE DIGITAL GROUP" COMPATIBILITY="ALL"
DATA_AUTO_PROPAGATE="false" PLATEFORM="ALL" RELEASE_DATE="20150903A"
SERIAL="" STARTABLE="false" STATUS="ALPHA" VERSION="1.0">
<SIGNATURE />
</HEADER>
<FAMILIES>
<FAMILY>RapidSolrComponent</FAMILY>
</FAMILIES>
<DOCUMENTATION>
<URL />
</DOCUMENTATION>
<CONNECTORS>
<CONNECTOR CTYPE="FLOW" MIN_INPUT="1" MAX_INPUT="1" MAX_OUTPUT="1" /><CONNECTOR CTYPE="ITERATE" MAX_OUTPUT="1" MAX_INPUT="1" /><CONNECTOR CTYPE="SUBJOB_OK" MAX_IN



To see the whole post, download it here
OriginalPost.pdf