File searching from Activities Overview: How to blacklist directories?

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.

How do I prevent GNOME from searching these /run/media directories?
Using GNOME 50.1 on Fedora Atomic Silverblue
Also asked on GNOME forums: File searching from Activities Overview: How to blacklist directories? - Desktop - GNOME Discourse

Open Settings, click spyglass type search.

The second point shows you the search locations, on which you can make restrictions.
Whatch that the shares are mounted when doing the settings.

I don’t see any way to restrict directories outside these defaults

Try to put a pen-drive to the USB and see if it gets listed. If it gets listed you can turn it of. It should appear on custom locations.

If there is nothing, try to add a location /run/media and then toggle it of. See if this changes something.

What is the output of the following commands:

$ gsettings get org.freedesktop.Tracker3.Miner.Files index-recursive-directories

$ gsettings get org.freedesktop.Tracker3.Miner.Files index-removable-devices

Add a .nomedia file to the root of the dir you don’t want indexed.