Skip to content

Commit

Permalink
enhancement(search): add min_score to query (#10593)
Browse files Browse the repository at this point in the history
Betree authored Dec 31, 2024
1 parent f26b19a commit 1932697
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/lib/elastic-search/search.ts
Original file line number Diff line number Diff line change
@@ -214,6 +214,7 @@ export const elasticSearchGlobalSearch = async (
body: {
size: 0, // We don't need hits at the top level
query,
min_score: 0.0001, // Ignore results that fulfill the accounts criteria but don't match the search term
// Aggregate results by index, keeping only `limit` top hits per index
aggs: {
by_index: {

0 comments on commit 1932697

Please sign in to comment.