Koha-clms/Koha/SearchEngine
Kevin Carnes 4086c1c4ff 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>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 301ed1567b)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2022-09-08 05:26:38 +02:00
..
Elasticsearch Bug 28610: Elasticsearch 7 - hits.total is now an object 2022-09-08 05:26:38 +02:00
Zebra Bug 29418: Make clean_search_term escape double quotes 2022-07-14 21:40:22 +02:00
Elasticsearch.pm Bug 25669: Use include_type_name parameter in ES calls 2022-08-26 22:27:52 +02:00
Indexer.pm Bug 25265: Prevent double reindex of the same item in batchmod 2020-09-28 10:10:08 +02:00
QueryBuilder.pm Bug 12478: allow more granular sorting configuration 2016-04-26 20:20:08 +00:00
Search.pm Bug 23763: Create a pagination_bar routine 2021-02-08 17:09:32 +01:00