Apple Event: May 7th at 7 am PT

Spotlight will not index ALL folders

I CANNOT get Spotlight to index all folders on my external hard drive. Things I have tried so far:

1) Re-index via system settings as described by Apple and in many other places

2) Evaluate drive with various apps to be sure it is healthy.

3) Rebuilt disk directories with DiskWarrior

4) Re-indexed drive via system settings, even restarting computer and drive between adding the external drive to privacy and restarting before removing drive from privacy settings. Some folders could be searched, some could not.

5) Individually added the unsearchable folders to privacy and removed them. This then allowed one folder to be searched, but not the second unsearchable one. Re-indexed second folder a second time and this time, could search the second folder, but THEN COULDN'T SEARCH THE FIRST ONE THAT HAD BEEN SEARCHABLE ONLY A SHORT TIME BEFORE!

It's like Spotlight can index a certain amount of files, but then can't do all of them! Which folders it can search varies, dependent upon what was most recent indexing. The drive is a Toshiba 5Tb drive and has about 3Tb of data. Is there a limit to the size Spotlight can handle?


Most of this started after upgrading to a new Mac Mini running Ventura, 13.3.1. Although I've always had a love/hate relationship with Spotlight, it has mostly worked OK on my iMacs, including on this drive. Thank the Lord for Find Any File! It finds all the files with no problem and is the only thing allowing me to work right now!


If anyone has any other ideas on how to get Spotlight to index ALL folders and files on an external hard drive, your ideas would be greatly appreciated!

Posted on Apr 12, 2023 8:24 PM

Reply

Similar questions

14 replies

Aug 9, 2023 7:22 PM in response to JSein456

Is it not indexing or not showing results. I.e., if you switch to This Mac, does it show results that are in the folders that you say are not indexed? I don't know if this will work for external drives. You don't need to do any of the other steps. Just delete the .Spotlight-v100 folder that is on the external.

Fix for Finder Not Showing Folder Search … - Apple Community

Apr 13, 2023 7:37 AM in response to Matti Haveri

Mac OS Extended. Like I said, Spotlight worked on about 10 our of thirteen folders. I just can't get it to work on all folders. Some folders have a lot of subfolders/files. As many as 6000 in one. Don't know if that makes a difference?

Also want to add that my M2 Mac Mini has not played well with any of my external hard drives. Drives go to sleep after a minute or two when computer is on regardless of energy settings. They awaken spontaneously when computer is asleep. This has been an issue noted elsewhere in this forum. Many are having to use Amphetamine keep drive alive to get work done. Also don't know if that's relevant.

Apr 13, 2023 9:20 AM in response to HardPass

Addendum: I can open a subfolder, many of which have tagged files. Searching the folder cannot find these tags. I can right click (Control click) and open a tag dialog box and look at the tags, close it without modifying it and Spotlight can then find that tagged item both in the subfolder search and in the enclosing folder search. It's like Spotlight re-indexes the files if I open the tag window or perhaps doesn't look at the Spotlight index until I "force" it to do so. Does not work, however, when I open a get info window and look at the tags.

Also, I can add a test folder to the folders that do not work with Spotlight and Spotlight can find the new folders as well as any tagged items I place in it! It still is unable to find any folders or files that were not newly created or recently had their tags examined.

Apr 14, 2023 3:46 PM in response to HardPass

I haven't heard anything from anyone, so decided to experiment myself. I connected the Toshiba external drive to my Intel iMac, running Ventura 13.3 to see if Spotlight worked any differently than it did on Mac Mini M2 Pro. Same folders could not be searched. I then once again, re-indexed the drive via System Settings and afterward the exact same folders would not search. Makes me think something is wrong with those particular folders. I was planning to try to re-index via Terminal next, but if something is wrong with folders, not sure it would work? I have no idea how to figure out what the problem is with the folders and any help would be greatly appreciated!

Apr 24, 2023 11:58 AM in response to Matti Haveri

After multiple hours of trying to trouble shoot Spotlight not indexing external drives correctly, and after purchasing a new drive and cloning affected drive to it and re-indexing new drive with no improvement, I finally gave up and contacted Apple Support to be told that Spotlight and external drives are a known issue and that engineers are aware and working on it.

Aug 9, 2023 6:24 PM in response to HardPass

I'm having exactly the same issue after upgrading to Ventura from Mojave a few weeks ago. Did you find any solution to resolve the issue natively on macOS? The upgrade itself was super smooth and I am having no other issues except for this...


I have 10 folders on my 8TB external SSD (APFS formatted), and one folder is quite big and contains a lot of folders and files inside, and it always refuses to index for some reason. It's not excluded in settings, and there are no hidden files inside to prevent it from being indexed. I can't find any reason why the OS refuses to index it.


The only "temporary" solution I have found is to use mdimport on the folder from the Terminal to get the data to index so I can search. I say "temporary" because the index data from mdimport seems to be lost (not retained) after about a week or less and the folder becomes unsearchable again.


I'm on Ventura 13.5 now. With Mojave I had no issues whatsoever and the indexing was perfect. I really hope Apple is working on this issue and not just saying that they are because it's rather frustrating, and I really don't want to have to use third-party tools to search my data.


This is supposed to be one of the fundamental, core functionalities of the OS... why can't Apple get this to work correctly already? :-(

Aug 9, 2023 8:12 PM in response to Barney-15E

Yes, the searches at the root of the volume work and display the results, as well as searches on This Mac and through the Spotlight interface, but they fail on that specific folder level for some-odd reason. I have already deleted the Spotlight folder and rebuilt the index on the external volume from scratch at least a dozen times, and the behavior every time is as I explained... one folder never indexes unless I manually trigger mdimport through Terminal, and it only lasts for a certain period of time until the folder becomes unsearchable again. It's either the index issue with Spotlight, or a Finder issue, or perhaps both... I don't know what's going on to be honest.

Aug 11, 2023 5:50 AM in response to JSein456

Have found a "partial" fix. I meticulously went through the upper most folders and identified the ones that would not index on a general re-indexing of the drive, added them one by one to Spotlight exclusions in System Settings, removed them one by one and allowed them to index. After finishing all of them, I could then search them as far as I could tell when searching ENTIRE drive, but same items found on that search could not be found if searching ONLY the folder individually!!! Not sure if indexing of these folders will continue to work.

I found somewhere on this forum someone who said Apple had confirmed that an APFS external volume will not keep its Spotlight index. I tried to find it to link it here but was unable to in my limited time this morning. Will try to find and link later.

Spotlight will not index ALL folders

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.