Skip to content

Commit

Permalink
Fixed inaccurate count retrieved for large indexes when using search …
Browse files Browse the repository at this point in the history
…query.
  • Loading branch information
ivanmrsulja committed Dec 3, 2024
1 parent c760397 commit a5dc6ea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ private List<String> figureReturnFields() {

private Map<String, Object> figureFullMap() {
return tree() //
.put("track_total_hits", true)
.put("query", queryAndFilters) //
.put("from", ifPositive(query.getStart())) //
.put("highlight", highlighter)
Expand Down

0 comments on commit a5dc6ea

Please sign in to comment.