Author Topic: Best method of merging two keywords  (Read 236 times)

Offline Skids

  • Newcomer
  • *
  • Posts: 26
    • View Profile
Best method of merging two keywords
« on: February 13, 2025, 04:00:39 AM »
Hi,
I wonder what method to use when I want to merge two keywords.  For example I have noticed that some images of a well known aircraft have the keywords Grosvenor, House and these should be merged into a single keyword of Grosvenor House.  At the moment I am using two Find and Replace comands, the first to delete one of the keywords and the second to replace the remaining one with the full keyword.  This works but there is a risk that other keywords may be changed if the find text appears in more than one keyword.  It seems that the Find treats the keywords as a complete string rather than a comma delimited list.

Is there a better way?

S

Offline ahoward

  • Camera Bits Staff
  • Uber Member
  • *****
  • Posts: 1064
    • View Profile
Re: Best method of merging two keywords
« Reply #1 on: February 14, 2025, 12:49:04 PM »
It seems that the Find treats the keywords as a complete string rather than a comma delimited list.

Whether or not it does this is dependent on the setting "Treat repeating fields as a single string".  If you have this turned on, then yes, the entirety of the keywords fields is treated as one string. If you want it to treat it as a comma separated list, disable this option.

You maybe able to use this to your advantage: with this enabled, if you do a Find on ", Grosvenor," it would only find instances of Grosvenor that are their own keyword (but only if it appears between two other keywords, as the leading comma would mean that it would not find Grosvenor if it was the first keyword.

Also, if you're not familiar with the the "whole words" feature, this would only find word if it stands alone as a word and is not part of another word: for example, searching for "book" would not find an image with the keyword "bookkeeper".

It may be possible to cook up a Regular Expression and use the Grep option that takes care of this without making any matches that you don't want it to, but maybe now that I've clarified on the string vs. list setting, that helps with this task.