search-engine-tracker: Do not lose filename results due to stop words
Tracker uses list of stop words which are not indexed. Consequently, fts:match doesn't provide any results for such words, which also affects filenames. I am conviced that this is not crucial issue for content search, but it is really problem in case of filename search. We should really always find files regardless of stop words in their names. This can be fixed on Nautilus side by splitting the search string and using ftp:match only for content search. For example, currently it is not possible to find "file-name.txt" file using "file-n" search string, because "name" is stop word, but it works nicely with this fix. Just note that /org/freedesktop/tracker/fts/ignore-stop-words setting needs to be changed to fix this issue for content search as well. Currently, snippet contains also filename in case of the filename match, which is not ideal as it just duplicates the information in UI. With this change, the snippet is set only in case of the content search.
Showing with 31 additions and 11 deletions