From d5482f1d1c90169da0fde8568a2ae41215550096 Mon Sep 17 00:00:00 2001 From: Rodrigo Zhou <2068124+rodrigozhou@users.noreply.github.com> Date: Wed, 2 Oct 2024 18:49:38 -0500 Subject: [PATCH] Remove track_total_hits from Scroll API (#6592) ## What changed? Remove track_total_hits from Scroll API ## Why? `track_total_hits` cannot be disable in Scroll API. Issue: https://github.com/temporalio/temporal/issues/6566 ## How did you test it? ## Potential risks ## Documentation ## Is hotfix candidate? --- .../visibility/store/elasticsearch/client/client_v7.go | 1 - 1 file changed, 1 deletion(-) diff --git a/common/persistence/visibility/store/elasticsearch/client/client_v7.go b/common/persistence/visibility/store/elasticsearch/client/client_v7.go index e18a6d6411f..be3e642ceed 100644 --- a/common/persistence/visibility/store/elasticsearch/client/client_v7.go +++ b/common/persistence/visibility/store/elasticsearch/client/client_v7.go @@ -193,7 +193,6 @@ func (c *clientImpl) OpenScroll( Index(p.Index). Query(p.Query). SortBy(p.Sorter...). - TrackTotalHits(false). KeepAlive(keepAliveInterval) if p.PageSize != 0 { scrollService.Size(p.PageSize)