[nautilus] search-hit: set a limit to FTS weight in matches
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] search-hit: set a limit to FTS weight in matches
- Date: Mon, 15 Oct 2012 14:04:03 +0000 (UTC)
commit 10c5667facf78efcfdd7c54aa8575f8a77ffa424
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Oct 14 13:34:15 2012 -0400
search-hit: set a limit to FTS weight in matches
We don't want this to become bigger than the proximity bonus.
libnautilus-private/nautilus-search-hit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-hit.c b/libnautilus-private/nautilus-search-hit.c
index 8bcbe6a..c4b31d9 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]