Skip to content

Commit

Permalink
adding tracking_total_hits in search query for findings (#1487) (#1489)
Browse files Browse the repository at this point in the history
(cherry picked from commit d7ee971)

Signed-off-by: Riya Saxena <riysaxen@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent cb43a19 commit 0b435c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,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 0b435c3

Please sign in to comment.