Dashboards-maps: documents size limit

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.11

Describe the issue:
As described here Update documents size limit by junqiu-lei · Pull Request #141 · opensearch-project/dashboards-maps · GitHub

update default query document size limit to 1000, the max is from index.max_result_window size,

But in fact limitation is set to 10000 and is not aligned with index.max_result_window:

Is there any other way to increase the number of documents ?

Configuration:

Relevant Logs or Screenshots:

I have found a dirty way to do it.

  • Create your map and save it.

  • Go to [Dashboards Management] > [Saved objects]

  • Export your map as ndjson format.

  • Edit the downloaded file and modify documentRequestNumber property according to your index.max_result_window size:

    "documentRequestNumber":100000

  • Save the file.

  • In [Dashboards Management] > [Saved objects] use the import feature to import the modified ndjson file.

Et voila.

Edit: to update your index setting index.max_result_window size using Dev Tools :

GET /index_or_alias_name/_settings

PUT /index_or_alias_name/_settings
{
  "index.max_result_window": 100000
}