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)