View | Details | Raw Unified | Return to bug 30883
Collapse All | Expand All

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-4 / +3 lines)
Lines 304-311 How many results to skip from the start of the results. Link Here
304
304
305
=item C<$max_results>
305
=item C<$max_results>
306
306
307
The max number of results to return. The default is 100 (because unlimited
307
The max number of results to return.
308
is a pretty terrible thing to do.)
308
The default is the result of method max_result_window().
309
309
310
=item C<%options>
310
=item C<%options>
311
311
Lines 343-349 sub simple_search_compat { Link Here
343
    my %options;
343
    my %options;
344
    $offset = 0 if not defined $offset or $offset < 0;
344
    $offset = 0 if not defined $offset or $offset < 0;
345
    $options{offset} = $offset;
345
    $options{offset} = $offset;
346
    $max_results //= 100;
346
    $max_results //= $self->max_result_window;
347
347
348
    unless (ref $query) {
348
    unless (ref $query) {
349
        # We'll push it through the query builder to sanitise everything.
349
        # We'll push it through the query builder to sanitise everything.
350
- 

Return to bug 30883