photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: mosdubindi1 on November 29, 2024, 03:39:31 PM

Title: How to filter files based on keywords count?
Post by: mosdubindi1 on November 29, 2024, 03:39:31 PM
Hello Mario,

In a custom File Window layout I've set the number of keywords assigned to a file based on variable {File.MD.hierarchicalkeywords|count:true}.

Now I need to filter files with number of keywords > 50.

I was trying to use Variable as a filter on the Filter panel. IMatch gives the long list with values found and the number of files for each value. But it is not convenient to tick manually all values >50.

Is there a way to automate the task?

Thanks in advance,
Dmitry
Title: Re: How to filter files based on keywords count?
Post by: thrinn on November 29, 2024, 04:23:20 PM
Instead of filtering, you could also use a data-driven category, based on this variable expression
{File.MD.hierarchicalkeywords|count:true;numcomp:gt,50,more than 50,less}

2024-11-29 16_19_22-IM Test 01.imd5.jpg
Title: Re: How to filter files based on keywords count?
Post by: Mario on November 29, 2024, 04:24:34 PM
Data-driven category as suggested by @thrinn or using the same variable in the Variable filter to reduce the number of results to files with > 50 counts.
Title: Re: How to filter files based on keywords count?
Post by: mosdubindi1 on November 29, 2024, 04:37:50 PM
@thrinn, Mario, thank you very much, it is working fine!
Title: Re: How to filter files based on keywords count?
Post by: Mario on November 29, 2024, 04:50:48 PM
Quote from: mosdubindi1 on November 29, 2024, 04:37:50 PM@thrinn, Mario, thank you very much, it is working fine!
Very good. I'm sure you won't find many DAM software that can do tricks like this.
Help me out and tell others about IMatch.