Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I have been trying to extract data from the Elastic search through rest connector but i have been able to fetch only 10 records .
Below is the script that i am using
let url = "http://10.35.12.5:9200/prem_reg_final_4_test_1_201903/_search?";
LIB CONNECT TO 'testconnection_heah (conn_qlikdv1)';
NoConcatenate
scrollTable:
SQL SELECT
"_scroll_id" AS "scrollid",
(SELECT
"total" AS "total_u1"
FROM "hits")
FROM JSON (wrap on) "root"
WITH CONNECTION(Url "$(url)");
Let total = Peek('total_u1',0,'scrollTable');
Let scrollid = Peek('scrollid',1,'scrollTable');
for startAt = 0 to total step pageSize
RestConnectorMasterTable:
SQL SELECT
"__KEY_root",
(SELECT
"__FK_hits",
"__KEY_hits",
(SELECT
"__FK_hits_u0",
"__KEY_hits_u0",
(SELECT
"NUM_REFERENCE_NO",
"__FK__source"
FROM "_source" FK "__FK__source")
FROM "hits" PK "__KEY_hits_u0" FK "__FK_hits_u0")
FROM "hits" PK "__KEY_hits" FK "__FK_hits")
FROM JSON (wrap on) "root" PK "__KEY_root"
WITH CONNECTION(url "$(url)");
scrollid = lookup('_scroll_id', '__KEY_root', 1,'RestConnectorMasterTable');
Trace $(scrollid);
NEXT startAt;
When i am trying to run this script i am getting the below error
Regards,
Nadeem Shaikh
For me this sounds, there might be some filter condition in the URL white creating the connection.
Hi,
thank you for replying could you please help out in understanding what you mean by filter condition in the URL
Regards,
Nadeem
Any Experts out there who can help on this
Bump.....