[nautilus/sam/tracker-3: 4/5] Fix content type matching
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/sam/tracker-3: 4/5] Fix content type matching
- Date: Tue, 18 Aug 2020 12:17:15 +0000 (UTC)
commit 93040dba4815509cc4347c280e12d2c42730413d
Author: Sam Thursfield <sam afuera me uk>
Date: Tue Aug 18 13:14:35 2020 +0200
Fix content type matching
src/nautilus-search-engine-tracker.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-search-engine-tracker.c b/src/nautilus-search-engine-tracker.c
index f3c93bb92..b4bb4cd6a 100644
--- a/src/nautilus-search-engine-tracker.c
+++ b/src/nautilus-search-engine-tracker.c
@@ -359,7 +359,8 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
" nfo:fileLastModified ?mtime;"
" nfo:fileLastAccessed ?atime;"
" nie:dataSource/tracker:available true;"
- " nie:url ?url");
+ " nie:url ?url."
+ " ?content nie:isStoredAs ?file");
if (mimetypes->len > 0)
{
@@ -370,7 +371,7 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
{
/* Use fts:match only for content search to not lose some filename results due to stop words. */
g_string_append_printf (sparql,
- " {"
+ " { "
" ?content nie:isStoredAs ?file ."
" ?content fts:match \"%s*\" ."
" BIND(fts:rank(?content) AS ?rank1) ."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]