LR Classic Library Filter search operands

  • 1
  • Question
  • Updated 8 months ago

 I am trying to refine a LIBRARY FILTER > TEXT selection to include either of two keywords and a third keyword.

The keywords are:   Ben, Matt , Fototime.    The keyword Fototime is also used in other instances not involving Ben or Matt.

What I want is all images with: (Ben or Matt) and Fototime

#1 Using CONTAIN and the string:      Ben, Matt, Fototime           gets me images with any of the three words, AND words like bench, bend etc (This yields 9,200 images.)

#2 Using CONTAIN and the string:      “Ben”, “Matt”, Fototime     eliminates the longer words with ‘ben’ such as bench, bend, BUT I get images with Fototime but not Ben or Matt. (This brings it down to 4,000 images.)

#3 Using CONTAINS WORDS and the string:        “Ben”, “Matt”, Fototime      gives all the images with all three words, which is a subset of what I want. (This gives me 330 images.)


Are there other search Operands that will give me what I want?


I can’t do it as a SMART COLLECTION as it allows either OR or AND, but not a combination of both.

I have managed to do it through a long process of searching through the result of #1 and then adding search criteria such as: !bend, !bench and any (many many) other longer words containing the combination of letters ben or matt. (This gave me the 2,500 images I am looking for, but it is a lot of work)

I could also search CONTAIN WORDS using     Ben, Fototime         and export all the images, then re-do for        Matt, Fototime.      Then take the two files, copying one into the other, but not copy over duplicate files, and import the new file into LR, but then I end up with duplicate copies of the images in my catalog.

The other solution is to use a different keyword such as Fototime2 when wanting Fototime associated with Ben or Matt. But that can lead to errors in adding keywords.

Suggestions please and thank you

Photo of Jim Robertson

Jim Robertson

  • 162 Posts
  • 34 Reply Likes

Posted 8 months ago

  • 1
Photo of Johan Elzenga

Johan Elzenga, Champion

  • 2897 Posts
  • 1246 Reply Likes
"I can’t do it as a SMART COLLECTION as it allows either OR or AND, but not a combination of both."

Yes, it does, but there's a little trick you need to know. Set the first line to 'Keywords contains words Fototime'. Hold down the Alt (Macintosh Option) key while you click on the plus icon to add the second search criterium. That will give you another any/or match. Choose 'Any' and then add the lines for 'Ben' and 'Matt'.



In the Filter bar you can do it too, again with a little trick: Select the Metadata filter, then create two columns for keywords. In the first column click on 'Ben' and then Ctrl (Cmd)-click on 'Matt', so both are selected. That will search on either Ben or Matt. In the second column click on 'Fototime'. This combination will search on either Ben or Matt, and Fototime.
(Edited)
Photo of Jim Robertson

Jim Robertson

  • 162 Posts
  • 34 Reply Likes
Thank you Johan, I knew there had to be a simpler way!!!!!!!

That pesky "ALT" key will do it every time!! Wish I had a dollar for everything the ALT key can do !!!!

I had tried three KEYWORD columns in the METADATA, but without know about the (also) pesky CTRL key it didn't work.

However using the SMART Collection it pulls up 2100 images. Using the METADATA filter it gives me 1993???
(Manually I got 2580 which I guess shows how inaccurate manual intervention can be)
Photo of John R. Ellis

John R. Ellis, Champion

  • 5112 Posts
  • 1447 Reply Likes
It's bad UI design to have such functionality hidden behind a magic keystroke.  (Though it's long been the Mac way, dating back to the very first Mac.)
Photo of John R. Ellis

John R. Ellis, Champion

  • 5112 Posts
  • 1447 Reply Likes
"However using the SMART Collection it pulls up 2100 images. Using the METADATA filter it gives me 1993???"

Smart collections ignore stacking and will show photos buried in collapsed stacks, while the Library Filter bar only shows photos on top of collapsed stacks.  So do this:

Select All Photographs.

- Do the menu command Photo > Stacking > Expand All Stacks.

- Configure the two keyword columns in the Metadata browser.
Photo of Jim Robertson

Jim Robertson

  • 162 Posts
  • 34 Reply Likes
Ah... makes sense. Stacking helps, but other times....
But after doing the METADATA selection, I assume PHOTO>stacking> collapse all stacks will put the stacks back?
Photo of John R. Ellis

John R. Ellis, Champion

  • 5112 Posts
  • 1447 Reply Likes
The contents of the stacks don't get changed by Expand and Collapse All Stacks -- they just get opened and closed in the user interface.
Photo of Jim Robertson

Jim Robertson

  • 162 Posts
  • 34 Reply Likes
Gotcha.

Thanks for your help (as always) Johan