Partial strings before the end of a search query cause failure to return filename results, compared to complete words
When I first noticed this last year, I did not file this issue as I was told it was already fixed in the then-upcoming Tracker 3.5 release through !585 (merged) referenced from nautilus!1149 (merged)
However, running Tracker 3.6 on Fedora 39 today, I noticed that search queries containing partial words strings will still not return results on filename searches in some circumstances, when the partial string is near the beginning of the query rather than the last part of the query. Kind of similar to #400 in spirit, but here there is not even an apostrophe involved, it's just the fact that string is a portion of the word.
This is particularly noticeable/problematic when using features like Nautilus nightly/46's "global search" that depends exclusively on Tracker (with no fallback to the "simple search" backend). Here is a video that shows the problem with "savepoint" vs "savepoin":
Tracker_3.6_Nautilus_46_Global_Search_partial_strings_query_bug
I have also tested with the tracker3 search
commandline queries that shows the problem is apparently not just with Nautilus.
$ tracker3 search "savepoint FF7"
Results:
file:///home/user/some_path/FF7%20savepoint%20by%20a%20reddit>
FF7 savepoint by a redditor…
file:///home/user/some_path/FF7%20savepoint%20by%20a%20reddit>
FF7 savepoint by a redditor…
file:///home/user/some_other_path/ff7%20savepoint.wav
ff7 savepoint.wav
...skipping...
Results:
file:///home/user/some_path/FF7%20savepoint%20by%20a%20reddit>
FF7 savepoint by a redditor…
file:///home/user/some_path/FF7%20savepoint%20by%20a%20reddit>
FF7 savepoint by a redditor…
file:///home/user/some_other_path/ff7%20savepoint.wav
ff7 savepoint.wav
$ tracker3 search "FF7 savepoin"
Results:
file:///home/user/some_path/FF7%20savepoint%20by%20a%20reddit>
FF7 savepoint by a redditor…
file:///home/user/some_path/FF7%20savepoint%20by%20a%20reddit>
FF7 savepoint by a redditor…
file:///home/user/some_other_path/ff7%20savepoint.wav
ff7 savepoint.wav
$ tracker3 search "savepoin FF7"
Results:
(no results)