[Koha-bugs] [Bug 30882] Add max_result_window to index config

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 2 08:30:30 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30882

--- Comment #2 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 135572
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135572&action=edit
Bug 30882: Add max_result_window to index config

Elasticsearch number of results is by default limited by setting
"index.max-result-window", default value is 10000.
https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-result-window

We use this setting :
https://git.koha-community.org/Koha-community/Koha/src/commit/44d6528b566e5c16eba9b15f8aa24667293766c3/Koha/SearchEngine/Elasticsearch/Search.pm#L411

I propose we add this setting in index config.

Test plan :
1) Use Elasticsearch
2) Apply patch and flush memcached
3) Rebuild indexes : misc/search_tools/rebuild_elasticsearch.pl -v -b -d
4) Check the settings of index :
   curl
'<cluster>:9200/<myindex>_biblios/_settings?pretty&filter_path=**.max_result_window'
5) You should see :
   "max_result_window" : "1000000"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list