Skip to content

Commit

Permalink
Set trackTotalHits threshold to 5000
Browse files Browse the repository at this point in the history
Workaround for a hybrid query bug in OpenSearch - opensearch-project/neural-search#497
  • Loading branch information
marcus-bcl committed Jul 29, 2024
1 parent 33e427d commit 154fccf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class ContactSearchService(
)
}
}
.trackTotalHits(TrackHits.of { it.enabled(true) })
.trackTotalHits(TrackHits.of { it.count(5000) })
.size(pageable.pageSize)
.from(pageable.offset.toInt())
.sorted(pageable.sort.fieldSorts())
Expand Down

0 comments on commit 154fccf

Please sign in to comment.