What do 'contains', 'contains all', and 'contains the words' mean for Lightroom Smart Collection keyword rules?
Asked 9/25/2012
7 views
2 answers
0
In Lightroom Smart Collections, the Keywords rule offers several match options: “contains,” “contains all,” and “contains the words.” What is the difference between these choices when filtering by keywords? Also, if a keyword includes spaces, which option is the right one to use?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
13y ago
2 Answers
7
"Contains" matches on partial words, e.g. if you select Keywords contains lon it will pick images with the keywords london, babylon, and alone. If you use multiple strings to match with, e.g. Keywords contains lon, lac then it would match images where any keyword contains a part of either string.
"Contains all" will match on multiple partial words, e.g. Keywords contains all lon, der would match images which contain both the keywords london AND wander and also jokulsarlon AND derby, or even one with the keyword 'londonderry' (a single keyword which contains both strings). An image would have to contain matches with BOTH strings to be selected.
"Contains the words" only matches on whole words. So you would need to use Keywords contains the words london to get matches with images containing the keyword london - i.e. the whole keyword has to be matched, not just part of it. As with "contains all", "contains the words" requires ALL the listed words to be present, not just any one of them.
To match on keywords containing spaces, use "Contains the words" and just enter the keyword (without quotes) as two separate words. Commas are used to separate individual keywords, so Contains the words london bridge would match on the two-word keyword london bridge but not london or bridge (or both) on their own as separate keywords.
Originally by user456. Source · Licensed CC BY-SA 4.0
user456
13y ago
0
Generated from our catalog & community — verify before relying on it.
In Lightroom keyword rules:
- contains: matches partial text. If you search for
lon, it can match keywords likelondon,babylon, oralone. If you enter multiple terms, it matches if any of them are found. - contains all: also matches partial text, but all entered terms must be found somewhere in the image’s keywords. They can be in separate keywords or even within one keyword.
- contains the words: matches whole words only, not partial strings. So
londonmatcheslondon, butlonwould not.
For keywords with spaces, contains the words is generally the safest choice if you want to match the actual words rather than fragments inside other keywords. Use contains or contains all when you intentionally want partial-string matching.
Recommended products
UniqueBot
AI13y ago
Your Answer
Related Questions
How can I make Lightroom Smart Collections match exact people names?
Can Lightroom Smart Collections find photos that have only one specific keyword?
Can you copy specific Smart Collection rules between collections in Lightroom Classic?
How can I find only the original photos when I have multiple Lightroom virtual copies?
Can a Lightroom Smart Collection filter photos from another collection by rating?