I have excluded a folder from Spotlight, because this folder has a lot of files so it often fills up the results, no matter what I'm searching for.
However, sometimes I still want to search this folder. So, I tried opening the folder in Finder, then searching using the box in the top-right corner of the window, then selecting Search: "Folder_name"
to limit the results to just that folder.
This method does not show any results, however. I assume it's because the folder is excluded from Spotlight search. So, is there any way that I can perform a manual search on the folder still, whenever necessary?
mdimport
on the Terminal to create an index, and may get rid of it after your search with another CLI tool. If you search for file names or content of text files only, there are also solutions involving thegrep
andfind
CLI utilities, or maybe even some GUI applications.find
/grep
on the Terminal.