Skip to content

Commit

Permalink
forgot to include search argument size=$limit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck committed Aug 22, 2024
1 parent ffa3747 commit 1992044
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion lib/Catmandu/Store/OpenSearch/Bag.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit 1992044

Please sign in to comment.