From fd5d2651989c8b00f553f3edb8abb2adfda9ed36 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 de5d71829b8..76ca2ac3cc3 100644 --- a/common/persistence/visibility/store/elasticsearch/client/client_v7.go +++ b/common/persistence/visibility/store/elasticsearch/client/client_v7.go @@ -192,7 +192,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)