Spotlight Search by Full Path?
This is not possible with Spotlight alone. Spotlight does not index the file path as a property of the file. Thus it is not possible to use the path as search criterion.

You can use mdfind at the command line to search the Spotlight index. With the -onlyin parameter you can point it at the top of your folder hierarchy. You can the filter the returned results using grep.

mdfind -onlyin ~/Downloads/ 'kMDItemContentTypeTree == "public.image"cd' | grep '.*/test.*/.*'


If you need help building the query for mdfind, have a look at HoudahSpot. There you can set up your search criteria. Then go to Window > Raw Query to find the Spotlight query string you can use with mdfind.

While in HoudahSpot you can also use its ability to filter search results. Above the search results you will find a search field that allows for filter/exclude by name/path. Here you can use the asterisk as a wildcard.

Full disclosure: I am the developer of HoudahSpot.