[Koha-bugs] [Bug 28610] Elasticsearch 7 - hits.total is now an object

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 7 15:21:17 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28610

Kevin Carnes <kevin.carnes at ub.lu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #131008|0                           |1
        is obsolete|                            |

--- Comment #12 from Kevin Carnes <kevin.carnes at ub.lu.se> ---
Created attachment 131436
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131436&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list