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]>
  • Loading branch information
riysaxen-amzn committed Mar 21, 2024
1 parent 441f5ae commit 5efb37d
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 5efb37d

Please sign in to comment.