[nautilus] search-engine-tracker: don't include current directory in results



commit d333d1b52db55108882b37a707f5e4fd282b2ff9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Sep 19 13:52:51 2012 -0400

    search-engine-tracker: don't include current directory in results
    
    Use tracker:uri-is-descendant instead of fn:starts-with to match the
    location path, so that the current directory itself is discarded from
    the results.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684393

 .../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 8abfbe6..7b2c949 100644
--- a/libnautilus-private/nautilus-search-engine-tracker.c
+++ b/libnautilus-private/nautilus-search-engine-tracker.c
@@ -255,7 +255,7 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
 	g_string_append (sparql, " . FILTER (");
 	
 	if (location_uri)  {
-		g_string_append_printf (sparql, " fn:starts-with(nie:url(?urn), '%s') && ",
+		g_string_append_printf (sparql, " tracker:uri-is-descendant('%s', nie:url(?urn)) && ",
 					location_uri);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]