Skip to content

Commit

Permalink
adding tracking_total_hits in search query for findings (#1487)
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
(cherry picked from commit d7ee971)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Mar 21, 2024
1 parent c3a11bd commit 3cef97c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class TransportGetFindingsSearchAction @Inject constructor(
)
)
}
searchSourceBuilder.query(queryBuilder)
searchSourceBuilder.query(queryBuilder).trackTotalHits(true)

client.threadPool().threadContext.stashContext().use {
scope.launch {
Expand Down

0 comments on commit 3cef97c

Please sign in to comment.