How to search locally AND in some filelists?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
luckulucki
Posts: 65
Joined: Mon Jun 19, 2017 1:45 pm

How to search locally AND in some filelists?

Post by luckulucki »

Hi,
I thought this might be simple to solve while reading the massive online help or the help in EV itself. But unfortunately, its not.

I tried:
<filelistfilename:x1;x2;x3>|<*:\>
<filelistfilename:x1;x2;x3>|<*:\*>
<filelistfilename:x1;x2;x3>|<?:\\*>
<filelistfilename:x1;x2;x3*:\>
<filelistfilename:x1;x2;x3|*:\>
and about 20 other combinations...none of them came up with the expected result,

which is:
searching locally on all of my ntfs drives AND in only those filelists x1, x2 and x3

either no locally files are shown, or too much filelists are searched. (i.e. filelists x4 are searched, while I did not include it)

What might be the correct search term in "Edit Filter" ?

Thank you!
filter.png
filter.png (33.8 KiB) Viewed 1659 times
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search locally AND in some filelists?

Post by void »

Please try the following search:

filelistfilename:x1;x2;x3 | !filelistfilename:


Match files/folders in a filelist where the filename contains x1 OR x2 OR x3 OR files/folders that are not in a filelist.



filelist-filename:
x1;x2;x3
Search Operators
luckulucki
Posts: 65
Joined: Mon Jun 19, 2017 1:45 pm

Re: How to search locally AND in some filelists?

Post by luckulucki »

Thank you,
by looking at your example, I guess, this will too match everything, I have not explicitly excluded, like all files from remote servers or so. So that will not really improve my search results.

So the thinking for EV here is "exclude everything which might come", instead of "include only what I want" ?

I'm just asking, because looking in the help for things I know I want to catch is easier than searching for everything I don't expect ;-)
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search locally AND in some filelists?

Post by void »

Please consider the following search:

filelistfilename:x1;x2;x3 | index-type:ntfs


index-type:
luckulucki
Posts: 65
Joined: Mon Jun 19, 2017 1:45 pm

Re: How to search locally AND in some filelists?

Post by luckulucki »

Now this is very handy, thank you very much!

I changed the search term to
filelistfilename:x1;x2;x3 | index-type:ntfs;fat
(just to be sure, that when someday an old friend with and old drive visits, I will find what he is looking for)

Anyway, would you please so kind and explain to me, WHY this regex
regex:^[A-Z]{1}\:\\
will not work too?
I thought, I could be clever but this regex is throwing the same wrong results like in my first examples with all the variants of
...<?:\\*>


I'm trying hard to understand the philosophy of EV here and why those filters don't work as expected, but I really don't get why...

There must be something I have not understood yet...
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search locally AND in some filelists?

Post by void »

regex:^[A-Z]{1}\:\\
will match your filelists too.

Are you expecting this regex search to not match filelists?
luckulucki
Posts: 65
Joined: Mon Jun 19, 2017 1:45 pm

Re: How to search locally AND in some filelists?

Post by luckulucki »

void wrote: Tue Aug 06, 2024 12:59 am
regex:^[A-Z]{1}\:\\
will match your filelists too.
yes, thats why I tried something like
<filelistfilename:x1;x2;x3> | <regex:^[A-Z]{1}\:\\>
or even
<filelistfilename:x1;x2;x3> <regex:^[A-Z]{1}\:\\>


void wrote: Tue Aug 06, 2024 12:59 am Are you expecting this regex search to not match filelists?
I start getting why that search term also results in listing other filelists that x1,x2 and x3.
The regex is also working for filelists. I was under the impression, the regex would match only drives like X:\... (which apparently it does, but also inside filelists...which was not what I expected)

Actually, I say: match everything in filelists x1,x2,x3 OR/AND match everything with this regex which would be any driveletter (C:\, D:\ ....)

As filelist x4 has content like
X:\foo\bar.ext
, EV will also list those matches, although I does not have include that filelist in
filelistfilename:


Nice learning ;-D

I now understand, that my thinking/expectations did differ from the code I told EV to execute ;-)

And, with that, unfortunately, I now understand, that there is no "search locally connected drives regardless of their filesystem" option in EV.
Something like
index-type:network;networkdrive
but only for local harddisks (which may not always have a driveletter as a mountpoint).

So I stick with
index-type:ntfs;fat
by now.

Thank you very very much! You were of great help to me ;-)) I was able to untangle the knot in my brain!
luckulucki
Posts: 65
Joined: Mon Jun 19, 2017 1:45 pm

Re: How to search locally AND in some filelists?

Post by luckulucki »

Hello again,

not so much time has gone, but I have forgotten everything I've learned here ;-( Also, by reading your and my posts again, I don't have a clue how to have EV do what I want now:

EV should return results from a filelist and from several folders.

I tried this
<C:\foo\bar|D:\foo\bar2|T:\test|G:\test|filelistfilename:FL>

or that
<C:\foo\bar|D:\foo\bar2|T:\test|G:\test> | filelistfilename:FL


Actually the same failure as I did before and only results from the filelist are shown. results from the folders are ignored.

How can I set up the filter to include a filelist AND some folders in the results?

Thank you! (and sorry for bothering you again about the same subject...)
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search locally AND in some filelists?

Post by void »

Your searches should work.

What happens if you search for:

C:\foo\bar|D:\foo\bar2|T:\test|G:\test


Ignoring filelists for now, does Everything return files from the expected folders?

Please make sure you have the Everything filter active.
luckulucki
Posts: 65
Joined: Mon Jun 19, 2017 1:45 pm

Re: How to search locally AND in some filelists?

Post by luckulucki »

Thank you.

This is very interesting...

I did not change my saved Test-Filter for further testing purposes, and now my searches, which previously yielded no results, are working as expected.

The only thing I did was to brutally kill the EV process some hours ago, because Windows File Locksmith* was telling me that the everything.exe was locking a file I wanted do to delete, but could not, even after I quitted EV the normal way via context menu in systray -> Exit

Maybe that did the job... I can't say, but it sounds like a "windows-thingy"...

Sorry for using precious time, but thanks for telling me, my filter was correct!

*File Locksmith is a Windows PowerToys tool that allows users to quickly identify and unlock files held by active processes directly from the right-click context menu.
Post Reply