summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-10-14 13:34:15 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-10-15 10:02:48 -0400
commitbc3f33eea5f9c3da1bf646c88cb9ea9d1536ccda (patch)
treecf511f952a7629d72147e44e5b772995a4836cb2
parentbbe59c4bb7c1d389442d00e93a7ba8482b0e102e (diff)
downloadnautilus-bc3f33eea5f9c3da1bf646c88cb9ea9d1536ccda.tar.gz
search-hit: set a limit to FTS weight in matches
We don't want this to become bigger than the proximity bonus.
-rw-r--r--libnautilus-private/nautilus-search-hit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-search-hit.c b/libnautilus-private/nautilus-search-hit.c
index 8bcbe6a97..c4b31d95b 100644
--- a/libnautilus-private/nautilus-search-hit.c
+++ b/libnautilus-private/nautilus-search-hit.c
@@ -111,7 +111,7 @@ nautilus_search_hit_compute_scores (NautilusSearchHit *hit,
}
if (hit->details->fts_rank > 0) {
- match_bonus = 10.0 * hit->details->fts_rank;
+ match_bonus = MIN (500, 10.0 * hit->details->fts_rank);
} else {
match_bonus = 0.0;
}