Skip to content

Commit

Permalink
Tune suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 18, 2023
1 parent b23e3f7 commit 79f9b89
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ actor PostSearchSuggestionsService {
let search = StringRankedSearch(searchTerm: searchTerm)
return tokens.compactMap {
let score = search.score(for: $0.displayName)
guard score > 0.8 else { return nil }
guard score > 0.7 else { return nil }
return RankedToken(token: $0, score: score)
}
}
Expand Down Expand Up @@ -85,7 +85,7 @@ actor PostSearchSuggestionsService {
let search = StringRankedSearch(searchTerm: searchTerm)
return tokens.compactMap {
let score = search.score(for: $0.tag)
guard score > 0.8 else { return nil }
guard score > 0.7 else { return nil }
return RankedToken(token: $0, score: score)
}
}
Expand Down

0 comments on commit 79f9b89

Please sign in to comment.