Get All Data Through Elasticsearch

Hi,

How to write an elastic query to return all data instead of putting size in the query? As I try a query without putting size, it just return 10 sets of data.

You can use:

  • the size and from parameters to display by default up to 10000 records to your users. If you want to change this limit, you can change index.max_result_window setting but be aware of the consequences (ie memory).
  • the search after feature to do deep pagination.
  • the Scroll API if you want to extract a resultset to be consumed by another tool later.

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