[data.search] track_total_hits=true
being sent in search request
#212946
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Search
Querying infrastructure in Kibana
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Kibana version: 9.1.0
Describe the bug:
The
data.search
APIs are sendingtrack_total_hits=true
in search requests, even when the consumer passestrack_total_hits=false
. This started in #208776.Steps to reproduce:
Notice that the request contains
track_total_hits=false
. However if you find the corresponding request in the Kibana server logs, it shows that the actual request being sent to Elasticsearch containstrack_total_hits=true
.Expected behavior:
track_total_hits=false
is properly being forwarded to the server & sent to ESAny additional context:
It looks like the following code is not properly getting the
track_total_hits
parameter from the client:kibana/src/platform/plugins/shared/data/server/search/strategies/es_search/request_utils.ts
Line 21 in 52ab19d
The text was updated successfully, but these errors were encountered: