Lightroom: Bug in text filter Caption Ends With

  • 6
  • Problem
  • Updated 2 years ago
  • Acknowledged
  • (Edited)
The text filter:

Caption Ends With "ab"

matches a photo with caption "xab" but not with caption "aab".
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes

Posted 7 years ago

  • 6
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
Also,

Caption Ends With "a"

matches caption "a b".
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Regarding xab but not aab:

Sounds like a data-sensitive bug reminiscent of the "Big Mallard Ducks" bug in 'Contains Words'.

However, the second case is to be expected (ends-with "a" matching "a b").

The way Lightroom works, it divides the search term up by spaces, then subjects each to the search criteria: "a" does end with "a" (I thought you were the one who pointed this out to me in the 'starts with' thread ;?) This behavior is awesome *iff* you dont have any spaces in your metadata, which my keywords don't, anymore, ever since I realized that Lightroom does not handle spaces properly. This behavior however is especially bad for searching captions, etc...

Space Urchin on the other hand, has been specifically designed to consider spaces as part of the search term, and will not match ends-with "a" unless the whole search term ends with "a".

R
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
I agree that the second case, Caption Ends With "a" matches caption "a b", is consistent with the way Starts With works. But since Becky of Adobe acknowledged Starts With as a bug, I thought it best to also mention that Ends With has a similar issue:

http://feedback.photoshop.com/photosh...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Gotcha.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
Still present in LR 4 beta.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
Photo of John Battista

John Battista

  • 2 Posts
  • 0 Reply Likes
The Smart Collection search options of 'ends with' doesn't appear to be working. When using 'Folder' 'ends with' 'Test' it includes all photos under the root folder of 'Test Photos'.

Similar examples such as 'Folder' 'ends with' 'Test Lucia' return all photos that are under the root 'Test Photos' and have 'Lucia' somewhere in the folder name.

As far as I can tell so far there is no difference between using contains all and ends with. Or starts with for that matter.
(v4.3 64-bit on Win8 64-bit)

This reply was created from a merged topic originally titled
Lightroom? Ends with, begins with functionality not working in Smart Collections.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
To be clear: Lr divides metadata up into words (with space as delimiter) *BEFORE* testing for matches. It then tests each word independently of the rest.

So 'THE END' starts with 'END' and ends with 'THE'.

Note: due to bug, the aformentioned can not be found at all when using "contains words" (see "big mallard ducks" bug).

This is one of my pet peeves in Lightroom:

Spaces are allowed *as data* but are treated *as separator*.

It's just wrong...

In the mean time, consider using AnyFilter
(or SpaceUrchin, if you're weird, like me)
if you need to search for metadata with spaces in it.

Rob
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
TextMeta offers a solution for searching a limited subset of metadata with spaces (e.g. file name, folder path, title, caption, ...) by replacing spaces with something else (in a shadow-copy available as custom metadata). Such massaged metadata is available for library filters and/or smart collections.

For example, if you specify spaces to be replaced by underscore, then

'THE END' would be stored as 'THE_END', which even by Lightroom native handling, starts with 'THE' and ends with 'END'.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3691 Posts
  • 963 Reply Likes
That's very simple!
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Thanks John. Not comprehensive, like AnyFilter, but may do for some cases...
Photo of John Ellis

John Ellis

  • 117 Posts
  • 12 Reply Likes
This bug still exists in LR 6.0.1 / OS X 10.10.3.
Photo of Robert Finlay

Robert Finlay

  • 1 Post
  • 0 Reply Likes
This reply was created from a merged topic originally titled "Keyword ends with" doesn't find matches when keyword contains a double letter.

In Lightroom 5.2 64-bit when I set up smart collections based on "Keyword ends with" I notice that some pictures are not being selected where the keyword has a double letter, e.g. "East Sutton" is not matched when I select "Keyword ends with 'ton'" whereas it is found if I change the keyword to "East Suton". A possible bug or a misunderstanding on my part?
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
In the merged thread, kirbykrieger wrote:

kirbykrieger MemberThis bug remains in Lightroom CC 2015.9.

Please see thread I started on Lightroomforums.net.  Confirmed by two top users.

The Smart Collection Rule:

{Keywords}{ends with}{string}

fails to match Photos with keywords that end with "xstring" where "x" is the same letter as the first letter in "string".

I am emigrating large databases from Aperture to Lightroom (happily, until this tripped me) that use sets of Smart Collections based on sets of keywords that carry one of a small often-used group of suffixes and prefixes.  This bug breaks my system.  Other than reporting it here, is there anything I can do to help resolve it?

(I have edited dozens of Smart Collections to use "tring" instead of "string" where the first letter of "string" follows an identical letter.  This short-term solution works for now, but it introduces an inconsistency that will cause bigger problems down the road, and is cumbersome to implement.)
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
Kirby, this bug was first reported over five years ago and acknowledged by Adobe two years ago.  Let's hope the recent refiling of the bug report spurs a fix!
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
In the merged thread, Rikk Flohr, Company Admin, wrote:

I am able to duplicate this behavior. A bug is filed. 
Photo of John R. Ellis

John R. Ellis, Champion

  • 3694 Posts
  • 966 Reply Likes
A very similar bug with "contains words" was fixed in CC 2015.0 / 6.0: https://feedback.photoshop.com/photoshop_family/topics/contains_words_bug_big_mallard_ducks?topic-re... .   This was the "big mallard ducks" bug first reported in LR 3.