How to select multiple filters in the Filter panel?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
axxccc
Posts: 7
Joined: Thu May 23, 2024 6:09 am

How to select multiple filters in the Filter panel?

Post by axxccc »

I want to be in the filter panel and select multiple filters at the same time. Currently, it's possible to ctrl multiple select, but it doesn't work.
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to select multiple filters in the Filter panel?

Post by void »

What filters are you trying?
Are you trying the built-in filters?
Does Audio and Video work as expected?

Everything will OR filters by default.
For custom filters, you may need to define a filter group.
filter groups are ANDed.
axxccc
Posts: 7
Joined: Thu May 23, 2024 6:09 am

Re: How to select multiple filters in the Filter panel?

Post by axxccc »

void wrote: Tue Jun 18, 2024 7:28 am What filters are you trying?
Are you trying the built-in filters?
Does Audio and Video work as expected?

Everything will OR filters by default.
For custom filters, you may need to define a filter group.
filter groups are ANDed.
how to use filter groups
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to select multiple filters in the Filter panel?

Post by void »

Add the following search to all your custom filters:

filter-group:"My Filter Group 1"

Use different names ("My Filter Group 1") where you want to AND filters.



You may have location filters, for example:

filter-group:"location" c:\folder1\folder2\
filter-group:"location" e:\folder1\
filter-group:"location" F:\folder1\
axxccc
Posts: 7
Joined: Thu May 23, 2024 6:09 am

Re: How to select multiple filters in the Filter panel?

Post by axxccc »

void wrote: Tue Jun 18, 2024 8:30 am Add the following search to all your custom filters:

filter-group:"My Filter Group 1"

Use different names ("My Filter Group 1") where you want to AND filters.



You may have location filters, for example:

filter-group:"location" c:\folder1\folder2\
filter-group:"location" e:\folder1\
filter-group:"location" F:\folder1\
I saw in another posting that you replied you could add: and-filter.
However, I have a filter that reads: wholefilename:$param.
Then, I wrote this: and-filter:wholefilename:$param: which did nothing.
axxccc
Posts: 7
Joined: Thu May 23, 2024 6:09 am

Re: How to select multiple filters in the Filter panel?

Post by axxccc »

void wrote: Tue Jun 18, 2024 8:30 am Add the following search to all your custom filters:

filter-group:"My Filter Group 1"

Use different names ("My Filter Group 1") where you want to AND filters.



You may have location filters, for example:

filter-group:"location" c:\folder1\folder2\
filter-group:"location" e:\folder1\
filter-group:"location" F:\folder1\
For example, I want to apply two filters at the same time:
and-filter: "C:\OneDrive\"
and-filter:wholefilename:$param.
The above test fails
00linlinfa
Posts: 5
Joined: Thu Nov 21, 2024 4:19 pm

Re: How to select multiple filters in the Filter panel?

Post by 00linlinfa »

I am a little confused about how to use filter-gruop. I have tried a few methods, such as typing filter-gruop in the search bar or setting a custom filter, but with no success.
Attachments
everythingQA.jpg
everythingQA.jpg (161 KiB) Viewed 472 times
void
Developer
Posts: 17153
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to select multiple filters in the Filter panel?

Post by void »

The results look as expected for a1, b1 and c1.
I am seeing 3 three filters combined (ORed together) and there's a result matching each filter.



What results are you expected?



The a, b and c filters will not combine correctly as they are ANDed together when more than one is selected.
You will likely see zero results when selecting more than one a, b or c filter.

Same applies to your a2, b2 and c2 filters.



If you select the following filters:
Audio
Video
a1
b1
c1

Everything will search for:

(Audio OR Video) AND (a1 OR b1 OR c1)
Audio and Video are in the unnamed group and are grouped together.
a1, b1 and c1 are in the "test" group and are grouped together.

Filters inside a group are ORed.
Groups are ANDed together.




filter-group: will only work in your filter search. (not the main search box)



Everything 1.5.0.1384a fixes an issue with and-filter: and wholefilename:$param:
00linlinfa
Posts: 5
Joined: Thu Nov 21, 2024 4:19 pm

Re: How to select multiple filters in the Filter panel?

Post by 00linlinfa »

Thanks for your reply, I think I finally figured out what “inside a group are ORed and Groups are ANDed together” means.
Now the result is what I want.
I get files whose file names contain a, b, and c at the same time by filter search.
For now ,Select multiple filters of different filter group,the result is ANDER,but Tab is ORed.
Select multiple filters set as and-filter,the result is ANDER,but Tab is ANDER.
Attachments
xxxxxx.jpg
xxxxxx.jpg (257.87 KiB) Viewed 383 times
Post Reply