Excluding certain folders by partial keywords

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
N1755L
Posts: 9
Joined: Wed Mar 09, 2016 11:30 pm

Excluding certain folders by partial keywords

Post by N1755L »

Hello everyone and Merry Xmas or Happy Holidays to all,

I've looked at https://www.voidtools.com/support/everything/searching/ and viewtopic.php?f=5&t=1970 but I cannot figure out the correct syntax to exclude from my search any folder containing the word "cache" anywhere in the folder name.

So basically, I am searching for documents, but am not interested in seeing results from any folder that has "cache" in the folder name.

I've tried a whole variety of syntax, but cannot seem to get it just right, folders like C:\Users\***\AppData\LocalLow\Microsoft\CryptnetUrlCache\MetaData\ keep showing up in my search... there is nothing in any such folder that I would ever be interested in, but I've yet to figure out how to filter out such folders.

Thank you.
horst.epp
Posts: 1447
Joined: Fri Apr 04, 2014 3:24 pm

Re: Excluding certain folders by partial keywords

Post by horst.epp »

What about !folder:cache at the end of your search term
N1755L
Posts: 9
Joined: Wed Mar 09, 2016 11:30 pm

Re: Excluding certain folders by partial keywords

Post by N1755L »

horst.epp wrote: Sun Dec 26, 2021 6:08 pm What about !folder:cache at the end of your search term
I'd already tried that as !folder:*cache*, and now I tired it without the asterisks as you suggest, but those #%$@^%@$% cache folders keep showing up in my search results... this does not seem to work. Thanks anyway though.
N1755L
Posts: 9
Joined: Wed Mar 09, 2016 11:30 pm

Re: Excluding certain folders by partial keywords

Post by N1755L »

For a second I thought I'd had a good idea, so I tried !child:cache... oh, doesn't work either :-(

Maybe !child:*cache*! Drats! No, this fails as well.

There HAS to be a way, a syntax.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Excluding certain folders by partial keywords

Post by tuska »

Mmh,

Code: Select all

!folder:cache 2f1edd4373313cbd899bdfb10fa0acdf376a25dd5eabb8cac8170302cdb8
brings
C:\Users\USER\AppData\Roaming\npm-cache\_cacache\index-v5\29\f0\2f1edd4373313cbd899bdfb10fa0acdf376a25dd5eabb8cac8170302cdb8

Code: Select all

!folder:cache Excluding certain folders by partial keywords.txt
brings
C:\Users\USER\AppData\Roaming\npm-cache\_cacache\index-v5\29\f0\Excluding certain folders by partial keywords.txt

_________________________________________________
Windows 10 Pro (x64) Version 21H2 (OS build 19044.1415)
'Everything' 1.5.0.1290a (x64) | Status Bar | Status Bar Format
Last edited by tuska on Sun Dec 26, 2021 11:11 pm, edited 1 time in total.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Excluding certain folders by partial keywords

Post by void »

Merry xmas and happy holidays,

Please try including the following in your search:

!*cache*\**


The following will also work, except it will also exclude files containing cache in their filename:
!path:cache



folder: = match folders only.
path: = match whole path and filename.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Excluding certain folders by partial keywords

Post by tuska »

void wrote: Sun Dec 26, 2021 11:08 pm Merry xmas and happy holidays,
Thank you. I wish you the same.
void wrote: Sun Dec 26, 2021 11:08 pm Please try including the following in your search:

!*cache*\**
Yes, that works!

Code: Select all

!*cache*\** 2f1edd4373313cbd899bdfb10fa0acdf376a25dd5eabb8cac8170302cdb8
!*cache*\** Excluding certain folders by partial keywords.txt
Thank you for the prompt reply and the solution.
Post Reply