SDK: catalog:findPhotos() fails with "Filename contains words a"

  • 2
  • Problem
  • Updated 5 years ago
The following call to catalog:findPhotos(), logically "Filename contains words a", fails to match a photo with filename "a.jpg":

catalog:findPhotos {searchDesc = {combine = "intersect",
{criteria = "filename", operation = "words", value = "a", value2 = ""}}}

It silently returns the empty array.

The smart-collection UI doesn't provide "contains words" for the criterion "Filename", perhaps because the implementation fails. Regardless, if "Filename contains words a" isn't intended to be supported, then catalog:findPhotos() should return an error and the documentation should be updated.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3869 Posts
  • 1023 Reply Likes

Posted 5 years ago

  • 2

Be the first to post a reply!