[nautilus] shell-search-provider: do not search for whole words only
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [nautilus] shell-search-provider: do not search for whole words only
- Date: Tue, 11 Oct 2016 18:23:36 +0000 (UTC)
commit 2bbc67cddc5f5bcba6a3a1cd980b54290d50cc03
Author: Jiri Cerny <ji cerny gmail com>
Date:   Wed Oct 5 21:03:26 2016 +0200
    shell-search-provider: do not search for whole words only
    
    Starting from 3.20 the shell search works only for whole words, not
    prefixes. Make it work again.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764587
 src/nautilus-search-engine-tracker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-search-engine-tracker.c b/src/nautilus-search-engine-tracker.c
index 3bba555..95a1dae 100644
--- a/src/nautilus-search-engine-tracker.c
+++ b/src/nautilus-search-engine-tracker.c
@@ -329,7 +329,7 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
                            "  nfo:fileLastAccessed ?atime;"
                            "  tracker:available true;");
 
-    g_string_append_printf (sparql, " fts:match '\"%s*\"'", search_text);
+    g_string_append_printf (sparql, " fts:match '\"%s\"*'", search_text);
 
     if (mime_count > 0)
     {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]