@@ -, +, @@ --- Koha/SearchEngine/Elasticsearch/Search.pm | 9 +++++++++ Koha/SearchEngine/Zebra/Search.pm | 8 ++++++++ 2 files changed, 17 insertions(+) --- a/Koha/SearchEngine/Elasticsearch/Search.pm +++ a/Koha/SearchEngine/Elasticsearch/Search.pm @@ -399,6 +399,15 @@ sub json2marc { return $marc; } +=head2 max_result_window + +Returns the maximum number of results that can be fetched + +This directly requests Elasticsearch for the setting index.max_result_window (or +the default value for this setting in case it is not set) + +=cut + sub max_result_window { my ($self) = @_; --- a/Koha/SearchEngine/Zebra/Search.pm +++ a/Koha/SearchEngine/Zebra/Search.pm @@ -110,6 +110,14 @@ sub search_auth_compat { C4::AuthoritiesMarc::SearchAuthorities(@params); } +=head2 max_result_window + +Returns the maximum number of results that can be fetched + +Zebra does not have such a limit, so it always returns undef + +=cut + sub max_result_window { undef } 1; --