Skip to main content
Participant
July 26, 2023
質問

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

  • July 26, 2023
  • 返信数 4.
  • 376 ビュー

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

このトピックへの返信は締め切られました。

返信数 4

johnrellis
Legend
July 28, 2023

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.

 

GoldingD
Legend
July 27, 2023

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

 

Bird Canada Canada.

 

Rikk Flohr_Photography
Community Manager
July 26, 2023

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

Rikk Flohr: Adobe Photography Org
Bob Somrak
Legend
July 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.  

M4 Pro Mac Mini. 48GB
Bob Somrak
Legend
July 26, 2023

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

M4 Pro Mac Mini. 48GB