Skip to content

Commit 1992044

Browse files
committed
forgot to include search argument size=$limit
1 parent ffa3747 commit 1992044

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Revision history for Catmandu::Store::OpenSearch
22

33
{{$NEXT}}
4+
- forgot to include search argument size=$limit
45

56
0.01 2024-07-03 09:23:10 CEST
67
- first release

lib/Catmandu/Store/OpenSearch/Bag.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sub BUILD {
3535
sub create_index ($self) {
3636
my $index_api = $self->store->os->index;
3737
my $res = $index_api->exists(index => $self->index);
38-
38+
use Data::Dumper;say Dumper($res);
3939
if ($res->code() eq "200") {
4040
# all ok
4141
} elsif ($res->code eq "404") {
@@ -225,6 +225,7 @@ sub search ($self, %args) {
225225

226226
my %os_args = (%args, index => $self->index, track_total_hits => "true");
227227
$os_args{from} = $start if $start;
228+
$os_args{size} = $limit;
228229

229230
my $res = $self->store->os->search->search(%os_args);
230231
if ($res->code ne "200") {

0 commit comments

Comments
 (0)