Page 1 of 1
How do you combine an "Or" and an "And" search
Posted: April 20th, 2020, 16:38
by DiBraccio
Hello
What filter expression would I need to return, all file names that match any of these strings:
_01 _02 _03 _04 _25 _26 _27 _28
"this is an the 'or' part of the search"
plus
Those returned in the above search must all match "Trap"
"This is an ''and" search applied to the above returns.
Thank You
Posted: April 20th, 2020, 19:41
by Tom
In 0.9.3 and below:
You cannot really do this as the filter always uses AND logic.
From 0.9.4:
To filter any of these (OR) you'd write:
To also match all these against "Trap" (AND) you'd write:
Code: Select all
_01 _02 _03 _04 _25 _26 _27 _28 +Trap
Sneak peek:
https://resonic.at/docs/preview/file-list#filter
Posted: April 20th, 2020, 22:28
by DiBraccio
Thank You
Posted: April 21st, 2020, 09:09
by DiBraccio
Hi
The filter combines "or" and "and" in a single filter expression perfectly. Exactly as you typed it below.
_01 _02 _03 _04 _25 _26 _27 _28 +Trap
I got the returns I was hoping for.
I didn't mention to you that the string: "Trap" was in the folder name, so I enabled 'meta' metadata.
and set the following metadata options:
• File > File name without path
• Path > Path without file name.
It worked.
One thing I don't get is, it only works when I have 'ext' enabled.?
Extension plays no parts in the search??
Why must 'ext' be enabled?
Thank you.
Posted: April 26th, 2020, 22:47
by Tom
Why must 'ext' be enabled?
That's clearly a bug or a wrongly labeled button (ref. 0.9.4 pre-release). Will fix that now.
Besides, we've got a bug tracker now at
https://bugs.liqube.com
Posted: April 27th, 2020, 01:21
by DiBraccio
Thank You
I love the program
Posted: April 27th, 2020, 02:53
by Tom
Re:
Posted: April 3rd, 2022, 11:02
by Rony5
Than
https://askmodapk.com/ks for the solution.
its working smoothly now..
Re:
Posted: May 2nd, 2023, 07:54
by leyo01
Tom wrote: ↑April 20th, 2020, 19:41
In 0.9.3 and below:
You cannot really do this as the filter always uses AND logic.
From 0.9.4:
To filter any of these (OR) you'd write:
To also match all these against "Trap" (AND) you'd write:
Code: Select all
_01 _02 _03 _04 _25 _26 _27 _28 +Trap
Sneak peek:
https://resonic.at/docs/preview/file-list#filter
Thanks for sharing this information. If it is right then I will be very grateful.
anonymous instagram viewer
Posted: September 8th, 2025, 21:44
by Tom
The file list filter prior to 0.9.4 was very basic and only does AND searches. Starting with 0.9.4 it works in an OR mode exclusively, however you can "+term" or "-term" to include or exclude something.
Details and examples here:
https://resonic.at/docs/file-list#filter
Keep in mind that the filter is not a full database search, rather it filters what is currently shown in the file list.
I'm thinking about adding regex to one of the next updates, or extended wildcards (with basic character classes). Meanwhile you could do this:
*_??*Trap*
or
*_??* +Trap
but it won't help with only finding the specific numbers you're after.
Re: How do you combine an "Or" and an "And" search
Posted: August 18th, 2026, 02:40
by Herewegoagain1280
DiBraccio wrote: ↑April 20th, 2020, 16:38
Hello
What filter expression would I need to return, all file names that match any of these strings:
The Storage Cube
_01 _02 _03 _04 _25 _26 _27 _28
"this is an the 'or' part of the search"
plus
Those returned in the above search must all match "Trap"
"This is an ''and" search applied to the above returns.
Thank You
If I understand what you're trying to do, you basically want the filename to contain one of `_01 _02 _03 _04 _25 _26 _27 _28` and also contain `Trap`.
Something along the lines of:
`(_01|_02|_03|_04|_25|_26|_27|_28).*Trap`
Although the exact expression depends on what program you're using for the search. Some of them handle regex a little differently, so I'd check that part before relying on it.
If you let me know what you're using to do the search, I can probably give you the exact expression for it.