[nautilus] tracker: respect the location URI when searching with tracker



commit aef4bf26ed8b48f6519fec9531bb530783193447
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Sep 8 14:48:58 2011 -0400

    tracker: respect the location URI when searching with tracker

 .../nautilus-search-engine-tracker.c               |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-engine-tracker.c b/libnautilus-private/nautilus-search-engine-tracker.c
index 60f8b2b..7aa07fb 100644
--- a/libnautilus-private/nautilus-search-engine-tracker.c
+++ b/libnautilus-private/nautilus-search-engine-tracker.c
@@ -259,6 +259,12 @@ nautilus_search_engine_tracker_start (NautilusSearchEngine *engine)
 
 	g_string_append (sparql, ")");
 
+	if (location_uri)  {
+		g_string_append (sparql, " && fn:starts-with(nie:url(?urn),");
+		sparql_append_string_literal (sparql, location_uri);
+		g_string_append (sparql, ")");
+	}
+
 	if (mime_count > 0) {
 		g_string_append (sparql, " && ");
 		g_string_append (sparql, "(");



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