Find a folder with given multiple files, Files spread across subfolders

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
koolestani
Posts: 49
Joined: Wed Feb 12, 2020 5:03 am

Find a folder with given multiple files, Files spread across subfolders

Post by koolestani »

What query would search a folder that contains File.A and subfolders that contain File.B, File.C (could either be the same subfolder that contains both File.B and File.C OR they can be in different subfolders).

Right now I'm using
child:File.A child:File.B child:File.C

This works like a charm when all three files are in the exact same folder (same directory level), but not when they are spread across various subfolders.
horst.epp
Posts: 1352
Joined: Fri Apr 04, 2014 3:24 pm

Re: Find a folder with given multiple files, Files spread across subfolders

Post by horst.epp »

Thats because the space between the names are mean AND.
Try this one
child:File.A | child:File.B | child:File.C
koolestani
Posts: 49
Joined: Wed Feb 12, 2020 5:03 am

Re: Find a folder with given multiple files, Files spread across subfolders

Post by koolestani »

Thanks for the reply
But this doesn't yield the desired result.
void
Developer
Posts: 15480
Joined: Fri Oct 16, 2009 11:31 pm

Re: Find a folder with given multiple files, Files spread across subfolders

Post by void »

Please try the following search in Everything 1.5:

child:File.A descendant:File.B descendant:File.C

child: will only search direct children.
descendant: will search direct children and grandchildren. (subfolders)
koolestani
Posts: 49
Joined: Wed Feb 12, 2020 5:03 am

Re: Find a folder with given multiple files, Files spread across subfolders

Post by koolestani »

This is perfect. Thank you so much.
koolestani
Posts: 49
Joined: Wed Feb 12, 2020 5:03 am

Re: Find a folder with given multiple files, Files spread across subfolders

Post by koolestani »

Can we not use multiple words separated by space along with child: and descendant:? I tried with double quotes but it didn't work.
void
Developer
Posts: 15480
Joined: Fri Oct 16, 2009 11:31 pm

Re: Find a folder with given multiple files, Files spread across subfolders

Post by void »

Use double quotes to search for a literal space:

For example:

child:"abc 123"



Use subexpressions to search for multiple words:

For example:

child:<abc 123>
-or-
child:abc child:123

(Everything sees this as child:abc AND child:123 )
Post Reply