Lines 94-100
sub search {
Link Here
|
94 |
my $results = eval { |
94 |
my $results = eval { |
95 |
$elasticsearch->search( |
95 |
$elasticsearch->search( |
96 |
index => $self->index_name, |
96 |
index => $self->index_name, |
97 |
track_total_hits => JSON::true, |
97 |
track_total_hits => \1, |
98 |
body => $query |
98 |
body => $query |
99 |
); |
99 |
); |
100 |
}; |
100 |
}; |
Lines 124-130
sub count {
Link Here
|
124 |
# and just return number of hits |
124 |
# and just return number of hits |
125 |
my $result = $elasticsearch->search( |
125 |
my $result = $elasticsearch->search( |
126 |
index => $self->index_name, |
126 |
index => $self->index_name, |
127 |
track_total_hits => JSON::true, |
127 |
track_total_hits => \1, |
128 |
body => $query |
128 |
body => $query |
129 |
); |
129 |
); |
130 |
|
130 |
|
131 |
- |
|
|