I have some java code as follows:
SearchRequest searchRequest = new SearchRequest(index);
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
searchSourceBuilder.query(QueryBuilders.matchAllQuery());
searchRequest.source(searchSourceBuilder);
SearchResponse response = client.search(searchRequest,RequestOptions.DEFAULT);
var hits = response.getHits();
for(var hit : hits){
log.info(hit.toString());
}
Expected number of docs is 36, Total hits is 36, but the list has only 10 actual docs as shown in the screenshot:

Is there some other setting required to fetch all 36?