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-directory.c | |
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-directory.c')
-rw-r--r-- | src/nautilus-search-directory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-search-directory.c b/src/nautilus-search-directory.c index 959193b1a..d51f4f861 100644 --- a/src/nautilus-search-directory.c +++ b/src/nautilus-search-directory.c @@ -628,6 +628,7 @@ search_engine_hits_added (NautilusSearchEngine *engine, file = nautilus_file_get_by_uri (uri); nautilus_file_set_search_relevance (file, nautilus_search_hit_get_relevance (hit)); + nautilus_file_set_search_fts_snippet (file, nautilus_search_hit_get_fts_snippet (hit)); for (monitor_list = search->details->monitor_list; monitor_list; monitor_list = monitor_list->next) { |