Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Contains Words (library Filter) does not work if one of the words is the last word and ends with "."

Community Beginner ,
Jul 26, 2023 Jul 26, 2023

Attempting to use the library filter to search among some recent images taken. I knew immediately that the filter was not working as I was expecting many more photos to appear.

 

Specifically I'm using Library filter on Caption Text, with logic 'Contains Words' and the words Bird and Canada which I know I have in multiple photos

 

However for those images where the only instance of Canada is where the caption ends with "Canada." those images do not appear in filter.  If I remove the terminating period ".", the the image appears in the filter set

I would expect the filter should know that "Canada." is the word "Canada", i.e. ignore the period as much as any other punctuation used. 

 

See screenshots for more details and example.

 

Using Lightroom Classic 12.4 on Windows 11 laptop

TOPICS
Windows
350
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 26, 2023 Jul 26, 2023

This looks like a bug to me.  It finds Canada with a comma or other punctuation after it but not the period. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 26, 2023 Jul 26, 2023

Check your Preferences>File Handling> Treat "." as a keyword separator setting. 

Rikk Flohr: Adobe Photography Org
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 26, 2023 Jul 26, 2023

@Rikk Flohr: Photography 

 

Changing that setting makes no difference in this case as it probabaly pertains only to keywords.  The OP is searching the Caption Field.   Contains Words ignores commans, colons etc but not periods.   Seems like a bug or at least a bad design.  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 26, 2023 Jul 26, 2023

What if you include Canada with the period as well as Canada without the period, that is:

 

Bird Canada Canada.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 27, 2023 Jul 27, 2023
LATEST

LR has always considered "." to be part of a "word".  The precise rules for "contains words pattern" are quite messy -- the rules for what constitutes a "word" in pattern are different from the rules for what constitutes a word in the field being searched.  (I had to reverse-engineer all this when first implementing my Any Filter plugin).  I don't think any of this behavior was carefully designed -- in general, LR's text search is a sloppy mess with lots of clear bugs and questionable behavior.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines