-
Sub-task
-
Resolution: Done
-
L3 - Default
-
None
-
None
-
None
Context:
With Elasticsearch 7.x. the totalHits response of the search response changed.
This caused some of our nightly import tests to fail where we expect exact counts to be returned while the counts are by default not guaranteed to be exact anymore.
AT:
- any document count asserts utilize the dedicated count api instead of reading the total hits from a search response where possible
- alternatively the param `.trackTotalHits(true)` is set on any search request where we need exact counts