diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-05-26 23:22:12 +0300 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-06-22 16:49:41 +0300 |
commit | 11cbe223a554549dc1b42d0c91a3d5b569bc3971 (patch) | |
tree | 6e4d3794d80611b4c0469da5f9455da2bb5b8948 /src/nautilus-search-hit.h | |
parent | ba5ed9b169ec99d03cc355137bce16573b892478 (diff) | |
download | nautilus-11cbe223a554549dc1b42d0c91a3d5b569bc3971.tar.gz |
implement fts
The search text can now also match the contents of a file, besides
the file name.
This is done with the help of a Tracker query, using fts:match, which
matces both the contents of a file and the filename.
The user also has the option to choose whether to use or not the
Full Text Search. This can be done with a preference, which represents
the default option when opening a new tab/window or from the search
popover.
https://bugzilla.gnome.org/show_bug.cgi?id=775961
Diffstat (limited to 'src/nautilus-search-hit.h')
-rw-r--r-- | src/nautilus-search-hit.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-search-hit.h b/src/nautilus-search-hit.h index 100c7dacc..1aecf7798 100644 --- a/src/nautilus-search-hit.h +++ b/src/nautilus-search-hit.h @@ -37,12 +37,14 @@ void nautilus_search_hit_set_modification_time (NautilusSearchHit GDateTime *date); void nautilus_search_hit_set_access_time (NautilusSearchHit *hit, GDateTime *date); - +void nautilus_search_hit_set_fts_snippet (NautilusSearchHit *hit, + const gchar *snippet); void nautilus_search_hit_compute_scores (NautilusSearchHit *hit, NautilusQuery *query); const char * nautilus_search_hit_get_uri (NautilusSearchHit *hit); gdouble nautilus_search_hit_get_relevance (NautilusSearchHit *hit); +const gchar * nautilus_search_hit_get_fts_snippet (NautilusSearchHit *hit); G_END_DECLS |