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:

Code: Select all

_01 _02 _03 _04 _25 _26 _27 _28
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/beta/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

Posted: August 6th, 2020, 01:47
by Hugofirst1994
Good to be here, Thanks for so long!