<?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 Re: Issue in Extracting Data from Elastic Search through rest connector in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1634045#M4473</link>
    <description>&lt;P&gt;Any Experts out there who can help on this&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 05:32:48 GMT</pubDate>
    <dc:creator>fashid</dc:creator>
    <dc:date>2019-10-11T05:32:48Z</dc:date>
    <item>
      <title>Issue in Extracting Data from Elastic Search through rest connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1631462#M4437</link>
      <description>&lt;P&gt;Hi Experts,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have been trying to extract data from the Elastic search through rest connector but i have been able to fetch only 10 records .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the script that i am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;let url = "&lt;A href="http://10.35.12.5:9200/prem_reg_final_4_test_1_201903/_search" target="_blank" rel="noopener"&gt;http://10.35.12.5:9200/prem_reg_final_4_test_1_201903/_search&lt;/A&gt;?";&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'testconnection_heah (conn_qlikdv1)';&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;scrollTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"_scroll_id" AS "scrollid",&lt;/P&gt;&lt;P&gt;(SELECT&lt;/P&gt;&lt;P&gt;"total" AS "total_u1"&lt;/P&gt;&lt;P&gt;FROM "hits")&lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root"&lt;BR /&gt;WITH CONNECTION(Url "$(url)");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let total = Peek('total_u1',0,'scrollTable');&lt;BR /&gt;Let scrollid = Peek('scrollid',1,'scrollTable');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for startAt = 0 to total step pageSize&lt;BR /&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT&lt;BR /&gt;"__FK_hits",&lt;BR /&gt;"__KEY_hits",&lt;BR /&gt;(SELECT&lt;BR /&gt;"__FK_hits_u0",&lt;BR /&gt;"__KEY_hits_u0",&lt;BR /&gt;(SELECT&lt;BR /&gt;"NUM_REFERENCE_NO",&lt;BR /&gt;"__FK__source"&lt;BR /&gt;FROM "_source" FK "__FK__source")&lt;BR /&gt;FROM "hits" PK "__KEY_hits_u0" FK "__FK_hits_u0")&lt;BR /&gt;FROM "hits" PK "__KEY_hits" FK "__FK_hits")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION(url "$(url)");&lt;/P&gt;&lt;P&gt;scrollid = lookup('_scroll_id', '__KEY_root', 1,'RestConnectorMasterTable');&lt;/P&gt;&lt;P&gt;Trace $(scrollid);&lt;/P&gt;&lt;P&gt;url = '&lt;A href="http://10.35.12.5:9200/prem_reg_final_4_test_1_201903/_search/scroll?scroll=1m&amp;amp;size=100&amp;amp;scroll_id=$(scrollid" target="_blank" rel="noopener"&gt;http://10.35.12.5:9200/prem_reg_final_4_test_1_201903/_search/scroll?scroll=1m&amp;amp;size=100&amp;amp;scroll_id=$(scrollid&lt;/A&gt;)';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NEXT startAt;&lt;/P&gt;&lt;P&gt;When i am trying to run this script i am getting the below error&amp;nbsp;&lt;/P&gt;&lt;DIV class="headline edc_error"&gt;The following error occurred:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;QVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 400 (Bad Request): {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/prem_reg_final_4_test_1_201903/_search/scroll] contains unrecognized parameters: [scroll], [scroll_id], [size]"}],"type":"illegal_argument_exception","reason":"request [/prem_reg_final_4_test_1_201903/_search/scroll]&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Also if i just load the hits table to get total and scroll id then my scroll id field is blank . i do have values in the total field .&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;If anybody could guide or throw some light into this .&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem Shaikh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1631462#M4437</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2021-12-23T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Extracting Data from Elastic Search through rest connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1631475#M4438</link>
      <description>&lt;P&gt;For me this sounds, there might be some filter condition in the URL white creating the connection.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 13:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1631475#M4438</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-10-04T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Extracting Data from Elastic Search through rest connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1631873#M4439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you for replying could you please help out in understanding what you mean by filter condition in the URL&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 05:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1631873#M4439</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2019-10-07T05:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Extracting Data from Elastic Search through rest connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1634045#M4473</link>
      <description>&lt;P&gt;Any Experts out there who can help on this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 05:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1634045#M4473</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2019-10-11T05:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Extracting Data from Elastic Search through rest connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1635791#M4489</link>
      <description>&lt;P&gt;Bump.....&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 06:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1635791#M4489</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2019-10-16T06:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Extracting Data from Elastic Search through rest connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1635809#M4490</link>
      <description>&lt;P&gt;maybe this helps?&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=QlCT55_712I" target="_blank"&gt;https://www.youtube.com/watch?v=QlCT55_712I&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 07:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Issue-in-Extracting-Data-from-Elastic-Search-through-rest/m-p/1635809#M4490</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2019-10-16T07:32:13Z</dc:date>
    </item>
  </channel>
</rss>

