Author Topic: Filter on missing title OR description  (Read 1143 times)

scw2wi

  • Jr. Member
  • *
  • Posts: 71
Filter on missing title OR description
« on: January 31, 2016, 12:30:50 PM »
I am trying to define a Filter to find images where eigther the title or the desciption field is empty.

I have defined 2 filters yet, one for each condition,
as Metadata Search with "Not Regular Expression" and the string ".+" (any char 1 or more times)
and Selected Tags for one filter "Description" and for the second filter "Title".

Both filters are working fine.

It's no problem to combine these 2 filters via AND,
in this case I could also add both Tags in one filter,
but I did not find a solution to apply both filters via OR.

I am thinking about a script which uses both filters via IMQuery
into 2 different result sets and then combining the 2 result sets,
but I'm not sure if this is the smartes solution.

Does anybody had a similar question in the past and maybe found a better solution?

Walter

scw2wi

  • Jr. Member
  • *
  • Posts: 71
Re: Filter on missing title OR description
« Reply #1 on: January 31, 2016, 04:29:41 PM »
Here is my solution via script file

resultSet1.CombineFiles (query.Result(1).Files,imboOR)

This is the solution I found to combine 2 filter query result sets via OR condition.
I don't know if there would be a solution without scripting but this is working fine.

I will finish my script incl. translation and then I can post it here, if there are others interested in it.

Walter