I am trying to update the limit for number of results returned from elasticsearch in my java spring boot application
index.max_result_window: 15000
I have tried by doing
UpdateSettingsRequest updateSettingsRequest = new UpdateSettingsRequest("index");
updateSettingsRequest.settings(Settings.builder()
.put("index.max_result_window", 15000)
);
elsRestClient.indices().putSettings(updateSettingsRequest, RequestOptions.DEFAULT);
But it does not work and the total results returned are still 10000. I haven't found the solution for this.