Skip to content

Commit

Permalink
adding tracking_total_hits in search query for findings (opensearch-p…
Browse files Browse the repository at this point in the history
…roject#1487) (opensearch-project#1488)

(cherry picked from commit d7ee971)

Signed-off-by: Riya Saxena <[email protected]>
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 c3a11bd commit a4b4895
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 a4b4895

Please sign in to comment.