I sometimes wish to find a file in my home directory and do so using the search bar in the Activities Overview. I also have like 4 samba network shares mounted under /run/media.
As already I have a slow wireless connection, Searching is considerably slower when it starts crawling these mounted network shares.
Localsearch will avoid indexing directories based on a couple conditions, like if there is a .nomedia file in the directory. For more you can check the documentation.
Creating a .nomedia file into my /run/media/scratch directory
tried the ignored-directories dconf key
gsettings set org.freedesktop.Tracker3.Miner.Files ignored-directories “[‘po’, ‘CVS’, ‘core-dumps’, ‘lost+found’, ‘/run/media/scratch’]
clearing localsearch index database
localsearch reset –filesystem
I did all of the above in order then rebooted.
Did not work, Search in Activities overview is still showing a Files section with files from subdirectories of /run/media/scratch directory
The Nautilus search provider also includes files from ~/.local/share/recently-used.xbel, i.e. files recently opened (in applications that support updating that file). As far as I know no recursive searching is involved in that. Maybe that’s where the results you are seeing are coming from.