Not getting proper Response as per the count

I am trying to retrieve 1500 records from ElasticSearch but in response I am getting only around 10 records.
I am getting count as 1500, also in kibana same query returns 1500 records.
But in response I am not getting all records.
I am writing a standalone java program using HighLevelRestClient.
Kindly help!

You need to set the size of the page. It's 10 by default.
Set it to 1500 if you want to get 1500 results at once. Or play with from parameter as well if you want to navigate between pages.

1 Like

It worked, Thnx!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.