Lightroom SDK: Documentation error for catalog:findPhotos

  • 2
  • Problem
  • Updated 4 years ago
  • (Edited)
The documentation for catalog:findPhotos says:

-------------------------------------------------
sdktext:(plug-in ID).(field name) Data type is text or enum, the field must be declared as searchable.
sdktext:(plugin id).* Data type is text or enum, specifies all searchable fields from the plug-in.
-------------------------------------------------

That should be "sdk:", not "sdktext:".
Photo of John R. Ellis

John R. Ellis, Champion

  • 3589 Posts
  • 928 Reply Likes

Posted 7 years ago

  • 2
Photo of John R. Ellis

John R. Ellis, Champion

  • 3589 Posts
  • 928 Reply Likes
Correction: For fields of type "string", the prefix should be "sdktext", but for fields of type "enum", it should be "sdk".
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Thanks for pointing this out John.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
I'm sure the documentation will be promptly updated, now that this error has been brought to attention (ha-ha).
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
Still not fixed in SDK 5.

Note: there is also a url data type - documentation doesn't say what prefix should be, but it is presently 'sdktext:'. If I had my way, it would be 'sdkurl:' so any interested parties could know it's type/intent.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
@Lr5.3, enum types are having "sdktext:" prefix in metadata columns of lib filter presets, so beware of the discrepancy between that and syntax used for smart collection search descriptor ("sdk:")..