Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Mac Photos app will no longer find search items

I'm running Sonoma 14.6 on an iMac M3. I run into periodic problems where the program asks to be rebuilt, as it won't open (I don't know why). After the last time I rebuilt it, it will no longer find any search items. I can check a photo's "info" and see the search word there, but a general search of photos won't find it. Thoughts?

15 replies

Are you using iCloud Photos to synchronize your Photos Library?


Try these things:


  • Restart the computer (of course)
  • Start in Safe Mode (different for different computers) This bypasses certain potentially disruptive processes.         Start up your Mac in safe mode - Apple Support 
  • Try another library if you have one, or make a small test Library with a few pictures in it and see if the same thing happens.
  • Make a new user and see if the same problem recurs with it. This tells you if the account has a problem
  • Try to rebuild your Photos Library by closing Photos and re-launching by option-command-clicking the app icon.


The idea is to find out if the problem is with the Library, with your account, or with caches and login items, or even one or two pictures that are corrupted-- stuff like that. One of these steps may fix the problem, but their failure to work is also diagnostic.

Give this a try: boot into Safe Mode according to How to use safe mode on your Mac and test to see if the problem persists. Reboot normally and test again.


NOTE 1: Safe Mode boot can take up to 3 - 5 minutes as it's doing the following; 

• Verifies your startup disk and attempts to repair directory issues, if needed

• Loads only required kernel extensions (prevents 3rd party kernel/extensions from loading)

• Prevents Startup Items and Login Items from opening automatically

• Disables user-installed fonts 

• Deletes font caches, kernel cache, and other system cache files


NOTE 2: if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode. This makes it act as a wired keyboard as will insure a successful boot into Safe Mode.


Have you installed and run any "cleaning", "optimizing", "speed-up", anti-virus or VPN apps on your Mac?

Where is the main library located? If not on the boot drive Photos can have problems with searches in the text search window. If that's the case try rebuilding the Spotlight index for that drive according to this Apple document: How to rebuild the Spotlight index on your Mac - Apple Support  

Copied my library to internal "disk" on iMac from external. Still no search capability.


Upgraded my iCloud so it would have enough space for the library and started uploading the file.


While it was uploading I opened Photos on the iMac during the upload and all the search capabilities had returned!!!!


I stopped the upload, erased the files in iCloud that had been uploaded and all is still well! I will now downgrade my iCloud to minimum...


Thanks all for trying to help.

Here's the Nuclear Option: Make a new Library and copy everything to it.


I'd use the trusted 3rd Party app, PowerPhotos ($30) to copy all the pictures and albums into a brand new Library. (I already own PowerPhotos and I use it for lots of things so, for me, it wouldn't cost anything.) I just tried copying about 1000 pictures, and it took less than a minute and preserved the album structure.


You could, instead, use the Import command in Photos, but that imports the pictures without their album structure.


Another method would be to pay for a month of iCloud (maybe $3), and let Photos copy all your pictures to it. Then make a new empty Library, designate it as the System Library connected to iCloud, and let Photos copy all the pictures from iCloud to the new Library. If there are corrupt files, they won't make it through iCloud. Then you cancel iCloud if you want.


What do you think?



Sorry, I "mis-spoke". The large photo library search brought back no hits, but any small new library was fine... The main photos library seems to be corrupt. I have 60K photos/videos. Interestingly enough the "filter by" option seems to work fine. Rebuilding makes no difference.

DHK21 wrote: ... To summarize:
Search for anything and nothing is returned, even something just added.
This occurs in safe mode, as well as access by another user on another computer.
Other test libraries work just fine.
I tried rebuilding Spotlight db and no change.

It really appears as if the Photos db is completely gone.

Your answer to my earlier questions was "I've tried all those tests above" which isn't at all specific, and it forced me to repeat about users and libraries. You did not answer my question about your using iCloud Photos to synchronize your Photos Library-- do you? Did you repair the Library?


If "the Photos db is completely gone" then you see no pictures, since the database is essential to every operation. That would be easier to figure out. Everything working but one is way harder.

@fa120: What do you mean by "Key"?


To summarize:

Search for anything and nothing is returned, even something just added.

This occurs in safe mode, as well as access by another user on another computer.

Other test libraries work just fine.

I tried rebuilding Spotlight db and no change.


It really appears as if the Photos db is completely gone.


I guess I'm not making myself clear today... sorry. Other libraries are fine, the main library can't search with the main user, or another user. It still seems to keep pointing at a problem with the main library data that rebuild can't fix.

I do not use iCloud Photos, and have repaired the library numerous times.

Other test photo libraries work fine.

Main library cannot be searched by any user

Safe mode makes no difference.


And I just got an error opening Photos (which I've had before in the past) "Photos was unable to open the library “Photos.photoslibrary”. (-1)". Did a rebuild and photos came back but no search capability... Get Info shows data about a photo, names, etc.

I've tried all those tests above. All the photos seem to be there but any kind of search still brings back no hits... : )

DHK21 wrote: I've tried all those tests above. All the photos seem to be there but any kind of search still brings back no hits... : )

Even in other Libraries? Even with other users?

Key

Already had 50G, so just upgraded it and am now uploading

Glad to hear you found a fix, although a bit convoluted.