[nautilus] Fixing the bug from the issue #1412
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Fixing the bug from the issue #1412
- Date: Fri, 29 May 2020 11:36:46 +0000 (UTC)
commit 01392db750bf6d9b94665e5507b7785924a276c4
Author: Cristiano Nunes <cfgnunes gmail com>
Date: Tue Apr 7 10:08:17 2020 +0000
Fixing the bug from the issue #1412
src/nautilus-search-engine-tracker.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-search-engine-tracker.c b/src/nautilus-search-engine-tracker.c
index d575ba875..c5ec176e5 100644
--- a/src/nautilus-search-engine-tracker.c
+++ b/src/nautilus-search-engine-tracker.c
@@ -288,9 +288,9 @@ search_finished_idle (gpointer user_data)
/* This is used to compensate rank if fts:rank is not set (resp. fts:match is
* not used). The value was determined experimentally. I am conviced that
- * fts:rank is currently always set to 5.0 in case of filename match.
+ * fts:rank is currently always set to 5 in case of filename match.
*/
-#define FILENAME_RANK 5.0
+#define FILENAME_RANK 5
static void
nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
@@ -372,7 +372,7 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
" {"
" ?urn nfo:fileName ?filename ."
" FILTER(fn:contains(fn:lower-case(?filename), '%s')) ."
- " BIND(%f AS ?rank2) ."
+ " BIND(%d AS ?rank2) ."
" }",
search_text,
FILENAME_RANK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]