diff --git a/Changes b/Changes index 8412a13..0ed8602 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Catmandu::Store::OpenSearch {{$NEXT}} + - forgot to include search argument size=$limit 0.01 2024-07-03 09:23:10 CEST - first release diff --git a/lib/Catmandu/Store/OpenSearch/Bag.pm b/lib/Catmandu/Store/OpenSearch/Bag.pm index c45c177..c1c37f4 100755 --- a/lib/Catmandu/Store/OpenSearch/Bag.pm +++ b/lib/Catmandu/Store/OpenSearch/Bag.pm @@ -35,7 +35,7 @@ sub BUILD { sub create_index ($self) { my $index_api = $self->store->os->index; my $res = $index_api->exists(index => $self->index); - + use Data::Dumper;say Dumper($res); if ($res->code() eq "200") { # all ok } elsif ($res->code eq "404") { @@ -225,6 +225,7 @@ sub search ($self, %args) { my %os_args = (%args, index => $self->index, track_total_hits => "true"); $os_args{from} = $start if $start; + $os_args{size} = $limit; my $res = $self->store->os->search->search(%os_args); if ($res->code ne "200") {