[nautilus] tracker-engine: treat the search string as a sentence for FTS match
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] tracker-engine: treat the search string as a sentence for FTS match
- Date: Mon, 29 Oct 2012 12:41:38 +0000 (UTC)
commit 87db1bd5070410d6a7d27a8747f774ab6d35edb7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Oct 29 08:36:31 2012 -0400
tracker-engine: treat the search string as a sentence for FTS match
Or the hyphens will be treated as NOT operators instead of word breaks,
which will prevent results from being returned.
https://bugzilla.gnome.org/show_bug.cgi?id=683633
.../nautilus-search-engine-tracker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-engine-tracker.c b/libnautilus-private/nautilus-search-engine-tracker.c
index 0d5469b..b791620 100644
--- a/libnautilus-private/nautilus-search-engine-tracker.c
+++ b/libnautilus-private/nautilus-search-engine-tracker.c
@@ -271,7 +271,7 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
}
g_string_append_printf (sparql,
- " fts:match '%s*' . FILTER ("
+ " fts:match '\"%s*\"' . FILTER ("
" tracker:uri-is-descendant('%s', nie:url(?urn)) &&"
" fn:contains(fn:lower-case(nfo:fileName(?urn)), '%s')",
search_text, location_uri, search_text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]