<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Read records more than 10000 from Elastic Search URL in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335967#M104464</link>
    <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I am having a requirement in &lt;/P&gt;&lt;P&gt;Talend Open Studio DI &lt;/P&gt;&lt;P&gt;to read the huge amount of data(e.g: around 12000 records) from elastic search URL Using the below URL, I have read the first 10000 records using trestclient component GET request.&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:9200/action-2021.03.31/_search?scroll=60m&amp;amp;size=10000" alt="http://localhost:9200/action-2021.03.31/_search?scroll=60m&amp;amp;size=10000" target="_blank"&gt;http://localhost:9200/action-2021.03.31/_search?scroll=60m&amp;amp;size=10000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I don't know how to read the remaining 2000 records in talend.&lt;/P&gt;&lt;P&gt;I can able to achieve the same scenario in postman tool by doing the following steps.&lt;/P&gt;&lt;P&gt;step 1: &lt;A href="http://localhost:9200/action-2021.03.31/_search/?scroll=60m&amp;amp;size=10000" alt="http://localhost:9200/action-2021.03.31/_search/?scroll=60m&amp;amp;size=10000" target="_blank"&gt;http://localhost:9200/action-2021.03.31/_search/?scroll=60m&amp;amp;size=10000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As a result of this I accessed the fist 10000 records and scroll_id is generated as part of this.&lt;/P&gt;&lt;P&gt;Step 2: Passing the scroll_id in the body section of the URL as below&lt;/P&gt;&lt;P&gt;URL:&lt;/P&gt;&lt;P&gt;&lt;A href="http://10.2.41.213:9200/_search/scroll" alt="http://10.2.41.213:9200/_search/scroll" target="_blank"&gt;http://localhost:9200/_search/scroll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Body:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	"scroll" : "10m",&lt;/P&gt;&lt;P&gt;	"scroll_id": "DIN1ZXJ5QW5kRmV0Y2gBAAAAAAJtbIoMMwN0Ui1YY0VTQXFIY3NGUjVZMTN3Zw=="&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know to implement this in talend like, how to pass the body section in the URL and which component has to be used for achieving this scenario.&lt;/P&gt;&lt;P&gt;Any experts can help on this scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;</description>
    <pubDate>Sun, 04 Apr 2021 17:19:21 GMT</pubDate>
    <dc:creator>dineshkumare</dc:creator>
    <dc:date>2021-04-04T17:19:21Z</dc:date>
    <item>
      <title>Read records more than 10000 from Elastic Search URL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335967#M104464</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I am having a requirement in &lt;/P&gt;&lt;P&gt;Talend Open Studio DI &lt;/P&gt;&lt;P&gt;to read the huge amount of data(e.g: around 12000 records) from elastic search URL Using the below URL, I have read the first 10000 records using trestclient component GET request.&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:9200/action-2021.03.31/_search?scroll=60m&amp;amp;size=10000" alt="http://localhost:9200/action-2021.03.31/_search?scroll=60m&amp;amp;size=10000" target="_blank"&gt;http://localhost:9200/action-2021.03.31/_search?scroll=60m&amp;amp;size=10000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I don't know how to read the remaining 2000 records in talend.&lt;/P&gt;&lt;P&gt;I can able to achieve the same scenario in postman tool by doing the following steps.&lt;/P&gt;&lt;P&gt;step 1: &lt;A href="http://localhost:9200/action-2021.03.31/_search/?scroll=60m&amp;amp;size=10000" alt="http://localhost:9200/action-2021.03.31/_search/?scroll=60m&amp;amp;size=10000" target="_blank"&gt;http://localhost:9200/action-2021.03.31/_search/?scroll=60m&amp;amp;size=10000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As a result of this I accessed the fist 10000 records and scroll_id is generated as part of this.&lt;/P&gt;&lt;P&gt;Step 2: Passing the scroll_id in the body section of the URL as below&lt;/P&gt;&lt;P&gt;URL:&lt;/P&gt;&lt;P&gt;&lt;A href="http://10.2.41.213:9200/_search/scroll" alt="http://10.2.41.213:9200/_search/scroll" target="_blank"&gt;http://localhost:9200/_search/scroll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Body:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	"scroll" : "10m",&lt;/P&gt;&lt;P&gt;	"scroll_id": "DIN1ZXJ5QW5kRmV0Y2gBAAAAAAJtbIoMMwN0Ui1YY0VTQXFIY3NGUjVZMTN3Zw=="&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know to implement this in talend like, how to pass the body section in the URL and which component has to be used for achieving this scenario.&lt;/P&gt;&lt;P&gt;Any experts can help on this scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 17:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335967#M104464</guid>
      <dc:creator>dineshkumare</dc:creator>
      <dc:date>2021-04-04T17:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read records more than 10000 from Elastic Search URL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335968#M104465</link>
      <description>&lt;P&gt;Hi Dinesh, you can use a twritejsonfields to write the body section and connect it to the trestclient to send it via a post request.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 07:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335968#M104465</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-06T07:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read records more than 10000 from Elastic Search URL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335969#M104466</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.talend.com/s/profile/0055b00000Ll14kAAB" alt="https://community.talend.com/s/profile/0055b00000Ll14kAAB" target="_blank"&gt;gjeremy&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Since I am new to Talend, can you please help me here by sharing the screenshots on how to achieve this scenario.&lt;/P&gt;&lt;P&gt;Your help is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 11:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335969#M104466</guid>
      <dc:creator>dineshkumare</dc:creator>
      <dc:date>2021-04-06T11:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read records more than 10000 from Elastic Search URL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335970#M104467</link>
      <description>&lt;P&gt;&lt;A href="https://help.talend.com/r/sgE1qM_4~9kOIJyS0XV1zA/yqePgSMBe4i1p2166jF6RQ" alt="https://help.talend.com/r/sgE1qM_4~9kOIJyS0XV1zA/yqePgSMBe4i1p2166jF6RQ" target="_blank"&gt;https://help.talend.com/r/sgE1qM_4~9kOIJyS0XV1zA/yqePgSMBe4i1p2166jF6RQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 17:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335970#M104467</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-06T17:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read records more than 10000 from Elastic Search URL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335971#M104468</link>
      <description>&lt;P&gt;Hi gjeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have achieved this by the following steps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Used trestclientcomponent and passed the URL with the below format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;http://localhost:9200/action-2021.03.31/_search/?scroll=60m&amp;amp;size=10000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result of this we accessed the fist 10000 records and scroll_id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saved the generatd scroll_id in the context variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Used another trestclientcomponent and passed the URL in the below format and passed the generated scroll_id in the query parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After performing this we successfully accessed the next 10000 records&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;URL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;http://localhost:9200/_search/scroll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 13:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-records-more-than-10000-from-Elastic-Search-URL/m-p/2335971#M104468</guid>
      <dc:creator>dineshkumare</dc:creator>
      <dc:date>2021-04-09T13:11:10Z</dc:date>
    </item>
  </channel>
</rss>

