Skip to content

Commit

Permalink
Fixing search ranking
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Sep 17, 2023
1 parent 92ad3b6 commit b0b4205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/search_result.ml
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ let score (t : t) : float =
(stats.ci_exact_match_found_char_count /. total_char_count))
+.
(sub_match_score
*. (stats.sub_match_total_char_count /. total_char_count))
*. (stats.sub_match_overlap_char_count /. total_char_count))
+.
(ci_sub_match_score
*. (stats.ci_sub_match_total_char_count /. total_char_count))
*. (stats.ci_sub_match_overlap_char_count /. total_char_count))
+.
(fuzzy_match_score
*. (stats.fuzzy_match_found_char_count /. total_char_count))
Expand Down

0 comments on commit b0b4205

Please sign in to comment.