Skip to content

[ML] Migrate to use track_total_hits. #71852

@walterra

Description

@walterra

We need to add track_total_hits: true to appropriate queries and adapt the code to retrieve the totalHits value. This means we need to switch over all the places where we use rest_total_hits_as_int to use track_total_hits, considering whether we need to use the exact hits total, or just an estimate.

More details: https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#hits-total-now-object-search-response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions