Photos App: Re-indexing of edited photos

I would like to use a third-party app to edit the metadata of a photo to change its Caption and then be able to search in the Photos app to find that image with the edited caption.

I have managed to do this by duplicating the photo with the edited metadata. The Photos app recognizes it as a new photo and indexes it with the new caption, making it searchable. However, when editing the photo in-place, the Photos app will not re-index the photo, therefore it will not be searchable.

Is there a way to edit photos in-place and have them searchable with the new metadata?

Editing the files inside of the .photoslibrary bundle in place is not advised and can lead to data loss.

Photos App: Re-indexing of edited photos
 
 
Q