LIGHTROOM Extend filter bar with AND/OR/NOT

  • 1
  • Idea
  • Updated 3 years ago
  • (Edited)
For multiple selections, it'd be useful to switch a filter in the filter bar between AND and OR (currently it's always OR), and between normal and NOT.

I hope this idea speaks for itself.

Or if not:

It would make it a lot less painful to do AND filters on the same field (for example, filtering on pictures that have tags a AND b), or to filter negatively (for example, filter all pictures except the ones with label 'red').

The negative filter can be done by selecting all values except the one, BUT, this won't work as a saved filter after adding new values. Especially horrid when working with tags - you'd constantly need to update your filter sets after adding tags. Same for labels. Same for camera models. Et cetera.
Photo of martijn Saly

martijn Saly

  • 189 Posts
  • 13 Reply Likes

Posted 3 years ago

  • 1
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1385 Posts
  • 413 Reply Likes
You can create nested filters for a smart collection. To do that, you

Alt-click (Windows) or Option-click (Mac OS) the 
Plus icon (+) to open nested options that let you refine criteria.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3383 Posts
  • 854 Reply Likes
The filtering rules are actually somewhat different and can accomplish much of what you want:

LR does a logical AND between the criteria in Text, Attribute, and the columns in the Metadata browser. Within each column of the browser it does a logical OR between multiple selected items. For example, suppose you have the following filters set up:

Text: Filename Ends With .nef
Rating >= 5
Metadata column 1: Keyword: A selected
Metadata column 2: Keyword: B, C selected

This will search for all 5-star .nef files that contain the keyword A and either the keyword B or the keyword C, or more precisely:

(Filename Ends with .nef) AND (Rating >= 5) AND
(Keyword = A) AND (Keyword = B or Keyword = C)
Photo of martijn Saly

martijn Saly

  • 189 Posts
  • 13 Reply Likes
We need the flexibility to control when it does OR and when it does AND. It's counter-productive to juggle with fields like that to make LR behave the way we want to, especially since it's programatically not very hard at all to implement flexibility in logic, the way I described.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3383 Posts
  • 854 Reply Likes
I agree that LR's search capabilities -- both filters and smart collections -- need enhancing. There are two plugins, Data Explorer and Any Filter, than fill in the missing capabilities, but as plugins they necessarily don't work as smoothly as something built-in would.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3383 Posts
  • 854 Reply Likes
"The negative filter can be done by selecting all values except the one"

Be careful here, this doesn't do what you think. Suppose the Metadata Keyword column shows three keywords A, B, and C. If you select A and B, all the resulting pics will contain either A and B. But they may contain C as well. That is, any pic that contains C will be included, as long as it contains A or B.
Photo of martijn Saly

martijn Saly

  • 189 Posts
  • 13 Reply Likes
True for keywords. For single-value fields, my statement holds.