I need to search my all data to find "folder names" that included words or words
I agree that this is a needed feature, and one I have missed.
In an earlier version, several years back, results of searching by filename also included matching folder names in the list. That was helpful but not perfect. A search field for searching exclusively for folder names would be really good.
Best I can do for now is hope to spot a result filename that is likely to be in folder I want to see, and right-click to use the Open Folder action.