How fetch unlimited data from elasticsearch

By default I am getting only 10 records from elasticsearch. I want to remove default value 10 and make it unlimited fetch. Please provide suggestion.

We have the scroll query to handle the case where you want to retrieve all documents that match a query:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html

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