Exclude sub-folders from Finder search How can I force Finder to only search the current folder, ignoring the contents of all the sub-folders?
I don't want to exclude the sub-folders permanently from Spotlight, just for a certain search.

The reason I want to do this is that I sometimes have a folder with sub-folders that contain files/folders that are identically named. A simplified example is shown below:

main
|
|-config.txt
|
|-folder 1
|  |
|  |-config.txt
|
|-folder 2
   |
   |-config.txt


When I'm in main and hit CMD+F and type config.txt I get three files. I don't want to click every file to see which one is in main and which in another folder, so ideally the sub-folders wouldn't show up in this search.
There is a product called Path Finder 6 that offers a feature called "filters and selections," demonstrated here.
You could try selecting all the items in the folder you are searching and applying a Label, then perform a Spotlight search for your item "AND" the additional criteria of "file label" by holding down the option key while clicking on the plus sign.