• Welcome to the Lightroom Queen Forums! We're a friendly bunch, so please feel free to register and join in the conversation. If you're not familiar with forums, you'll find step by step instructions on how to post your first thread under Help at the bottom of the page. You're also welcome to download our free Lightroom Quick Start eBooks and explore our other FAQ resources.
  • Stop struggling with Lightroom! There's no need to spend hours hunting for the answers to your Lightroom Classic questions. All the information you need is in Adobe Lightroom Classic - The Missing FAQ!

    To help you get started, there's a series of easy tutorials to guide you through a simple workflow. As you grow in confidence, the book switches to a conversational FAQ format, so you can quickly find answers to advanced questions. And better still, the eBooks are updated for every release, so it's always up to date.
  • 18 October 2022 It's Lightroom update time again and there's a new AI-based Masking tools and a new Content-Aware Remove Healing tool, as well as smaller features, new cameras, lenses and bug fixes! See this blog post for Lightroom Classic and this blog post for the Lightroom Cloud Ecosystem changes.

Is there documentation on the various choices for keywords in Smart Collections?

Status
Not open for further replies.
Joined
Oct 15, 2015
Messages
13
Location
Larimer County, Colorado
Lightroom Experience
Power User
Lightroom Version
Classic
Lightroom Version
11.4.1
Operating System
  1. macOS 11 Big Sur
I read a really good thread here that discussed that a space is considered an "OR" in a multiword-keyword and how that can bite you because you'll get images returned that have the any of the individual words.

....but it would be nice to see all the choices in the smart collection environment laid and out and explained.
 
Joined
Apr 3, 2012
Messages
1,835
Location
Bay Area, California, USA
Lightroom Experience
Power User
Lightroom Version
Classic
I read a really good thread here that discussed that a space is considered an "OR" in a multiword-keyword
It's a little more complicated than that, unfortunately. Keyword matching in filters and smart collections is a bit of a mess and neither well-designed nor well-documented.

You could start with page 184 of the The Missing FAQ, which explains the basics of the filter/smart collection operators Contains, Contains All, Contains Words, etc.

For a more precise (but less tutorial) description of the text matching operators, see here:
https://johnrellis.com/lightroom/anyfilter.htm#textops

That includes some operators that are available only in the Any Filter plugin, but it accurately describes the built-in operators.

Another thing that isn't documented: When searching keywords, some but not all of the matching operators treats Keywords as a single field, with all the keywords concatenated together, separated by spaces. For example, suppose a photo has two keywords, "John Ellis" and "Bob Smith".

- "Keywords contains words John Smith" will match that photo.
- "Keywords starts with John" and "Keywords starts with Bob" will also match.

There is no exact match for individual keywords, unfortunately, an egregious oversight for people with large controlled vocabularies.
 
Joined
May 9, 2015
Messages
1,411
Location
Palo Alto, CA
Lightroom Experience
Power User
Lightroom Version
Classic
John is right. It is less than optimal (being polite here).

Some folks (Including myself) have crafted various work arounds to plug some of the holes but there are pros and cons to those work arounds as well that they are in some manner of thinking corrupting the design implemented by Adobe.
 

PhilBurton

Lightroom enthusiast (but still learning)
Premium Classic Member
Joined
Nov 16, 2015
Messages
2,777
Location
California, USA
Lightroom Experience
Intermediate
Lightroom Version
Classic
John is right. It is less than optimal (being polite here).

Some folks (Including myself) have crafted various work arounds to plug some of the holes but there are pros and cons to those work arounds as well that they are in some manner of thinking corrupting the design implemented by Adobe.
@Califdan,

Constructing smart collection conditions drive me crazy at times, and I'm sure I'm not alone. Are you comfortable in posting some of your workarounds.

I have zero expectation that Adobe will address this issue. But if I am wrong, I doubt that they will create a "smart collections migration tool."
 
Joined
May 9, 2015
Messages
1,411
Location
Palo Alto, CA
Lightroom Experience
Power User
Lightroom Version
Classic
Please understand that a work around is just that and what some people consider a good compromise others think the opposite. I've posted this one before and some of the Guru's here, whom I have high respect for, tend to not like the idea - but it works for me.

The main problem is that Lightroom treats spaces as delimeters in Filters and Smart Collections. So, a keyword of John Smith is no different than two keywords, one for John and one for Smith. In other words if you searh for CONTAINS "John Smith" youget images that have a either a keword with "John" OR a keword with "Smith" (including "Johnson" and "Smithy". If you search for CONTAINS ALL "Jonn Smith" not only get images that have both a "John" keyword and a "Smith" keyword (including Johnson and Smithy". Using CONTAINS WORDS, is not always what you think but sometimes will help witht he "Johnson" and "Smithy" problem. A little known behaviour of LrC in keyword searching is that it does not look at synonyms if searching specifically for Keywords and that is what I exploit

My work around for this is as follows. when I create a keyword, say for "John Smith", I set the keyword to "John-Smith" (note hyphen). You can use other charachters like an underscore or asterisk instead of the hyphen if you like. Then I add a synonum of "John Smith" (no hypen) and set "Export this keyword" to no and Export Synonym to Yes. By doing this if I want just the "John Smith" I ask for "John-Smith" (with hyphen). This will return John-Smith but could also return "John-Smithson" but it would not return all the Johns nor all the Smiths. However it I export an image with this KW, the tag on the image is "John Smith" (i.e. the synonym). It is perfect? No. Does it help a lot? Yes. BTW it also helps quite a bit withthe keyword list filter. Type in "John" and you get all the John's including Johnson. Type in "John-" and you get all the John's but not Johnson but you might get "babyjohn-smith". type in "John-smith" and you just get John-Smith (but could also get John-Smithson".

Another problem is that sometimes you have a KW, that is for reference or documentaiton purposes or to simplify your keyword hierarchy that you really don't want to be looked at when using filters or smart collecitons. For example, I have a "Location" hieraricy where i've included a level between "United-States" and the list of each state. For example "Mountain-states". But, in my "Sub ject" KW hierarchy I have a keyword called "Mountain". When I search for "Mountain" I really don't want every image taken in a mountain state to also be included. In other words I want my searches to ignor "mountain-states" automatically. Another Example is that I have a keyword for images of me "Dan-Hartford", but I also have a Keword showing that I took the photo "Dan-Hartford-Photo" (Synonym: "Copyright Dan Hartford Photo"). But when I filter or search for "Dan-Hartford" I don't want it to return every image I took by also looking at "Dan-Hartford-Photo". Anyway, the idea is to imunize against certain keywords from being found by filters and smart collections. To do this I again batardize the keyword name. In this case I use an asterisk between the first and 2nd letter of words in the keyword. So it's now "M*ountain-S*tates" and "D*an-H*artford-P*hoto". I then use the correct spelling with spaces as the synonym if I have the keyword marked to export (e.g. "Copyright Dan Hartford Photo). Of coure if I actually want a filter or smart collecton to find these I just include the spelling with the "*".

A third issue that many folks have with keywords are keywords for people. Some of this problem is aleviated by my first suggestion but the added complexity with people is mix and match. For example, I want all the images of Fred but only if his ex-wilf Jane is not in the image. Or, I want images that have both Fred and Mary but no one else. Or, image must have Fred and Mary but no identified persons (some background strangers are OK). Now it is entirely possible to build a smart collection for each permutation that has or may come up but as your number of people grows the possible combinations of people grows exponentially. And, crafting a new Smart Collection each time you want a different set of folks is quite time consuming. Anyway I wrote a blog on this that you can find here: https://www.danhartfordphoto.com/blog/2021/12/lr013-keywords-for-people

You can also read my blog on keywords in general here: https://www.danhartfordphoto.com/blog/2016/12/lr003-get-the-most-out-of-lr-keywords
 
Status
Not open for further replies.
Top