]> git.koha-community.org Git - koha.git/commit
Bug 28610: Elasticsearch 7 - hits.total is now an object
authorKevin Carnes <kevin.carnes@ub.lu.se>
Tue, 8 Feb 2022 13:48:19 +0000 (14:48 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 4 Apr 2022 14:23:46 +0000 (16:23 +0200)
commitfe4101140ea5ec40e18233a1d9be61455092de07
tree1daaaf02131d8026e127126f8dc8e0b3bc83a1a9
parent56107babc72da9d99b9fd7a097f3c8ff741435b4
Bug 28610: Elasticsearch 7 - hits.total is now an object

In Elasticsearch 7 hits.total is now an object which is not always an exact
value. You can always get an exact total by adding a track_total_hits
parameter set to true when using the Elasticsearch search method

To test:
1) Run prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Search.t
2) If you observe an error about types, apply patch for bug 25669
3) Run prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Search.t
4) Observe that tests with count fail
5) Apply patch
6) Observe that tests with count pass
7) Sign off

Sponsored-by: Lund University Library
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SearchEngine/Elasticsearch/Search.pm
cpanfile