Jump to content

File Search issue in MacOS Monterey after Migration Assistant


Recommended Posts

Summarising the recent email exchanges with @Drabideaux

 

He added the following two paths to his index, and rebuilt the metadata index including deleting checking the box to "Delete .Spotlight-V100" during the process.

 

/Applications
/System/Applications

 

A few days later, on following up, I suggested resetting the search scope to defaults (using the Reset Search Scope button in Features > Default Results), and drabideaux is still finding all files. I have a suspicion that if just an index rebuild had been done, macOS would've eventually sorted itself out. 

 

At this point, I think everyone who has mentioned they're having indexing issues after migrating settings to their new Monterey Mac is all sorted. 

 

I'll leave this thread open, should anyone else be encountering this issue, but the conclusion is rebuild your Mac's index from Alfred's Advanced preferences, check the box to delete Spotlight-V100, and the issue should be resolved shortly thereafter. Keep in mind this is a brand new version of macOS, with quirks of its own. :) 

 

Cheers,
Vero

Link to comment

I am currently having this issue and non of the steps seem to work. This is what I’ve done:

 

-set up a new user and added main user under search. Was not able to search anything on main user. 
-rebuilt macOS metadata


Not being able to find files is totally

killing my workflow. I’ll have to get used to spotlight. Any help would be appreciated. 
 

edit: I can find files in spotlight. I did try resetting the search scope but Alfred still cannot find anything outside of applications, contacts and URLs from history. 

Edited by Xage
Link to comment

@Xage Can I confirm that you've done a full rebuild as per the instructions in my earlier post, including granting Terminal Full Disk Access and deleting the Spotlight-V100?

 

https://www.alfredforum.com/topic/17462-file-search-in-macos-monterey/?do=findComment&comment=90299

 

Next, please follow Andrew's instructions to add paths to your search scope:

https://www.alfredforum.com/topic/17462-file-search-in-macos-monterey/?do=findComment&comment=90398

 

If the issue persists, could you please be more specific as to what apps aren't found, what location they're in, etc, as the instructions above seem to have resolved everyone else's issues, so it's possible you've just missed a step. :)

 

Cheers,
Vero

Link to comment

I have tried all the solutions from Vero and Andrew for a few times and even reinstalled my Alfred. I am sure I followed all the instructions given. Still I can only find the files in my ~ folder in spotlight but not Alfred. It seems that some users have the issue due to a system migration. 

 

But thanks to the information provided by rdj, I resolved the issue.

 

So for those of you who migrated your system and find the issue, try my solution: Create a new user account in system preference -> Users & Groups, login to that account and come back to your account, then reindex following the instructions provided by Vero.

 

On 11/5/2021 at 6:23 PM, Vero said:

For anyone who hasn't done so yet, please rebuild your Mac's index properly, as this may be all that's needed, as seems to have been the case with some users.

 

Even if you believe you've already reindexed, please follow the steps below specifically (as it involves deleting a cache first and ensuring Terminal has suitable permissions).

  • First, please pop open System Preferences > Security & Privacy > Privacy > Full Disk Access and add Terminal
  • Once you've done this, go to Alfred's Advanced preferences, choose "Rebuild macOS Metadata"
  • Ensure that you check "Delete .Spotlight-V100 before reindex"
  • Follow the steps in Terminal, and keep a close eye for any error messages relating to your index.

Please let me know if there are any errors. Otherwise, if it proceeds smoothly, you may need to wait up to an hour for the reindex to complete. Once this is done, make your searches again and see if your results are more as expected.

 

Do let us know how you get on :)

 

Edited by JackC
Link to comment

I have used Transfer Assistant and transfered to my new macbook on Monterey. But I have a similar issue that I could not search any files but succeed in searching APP. Spotlight is totally ok and usable. I've tried meta-rebuild, and everything else in Alfred. Here is the report, thanks so much for help.

Starting Diagnostics...

File: 'Network Governance Alliances, Cooperatives and Franchise Chains.pdf'
Path: '/Users/dayaalei/My Drive/Dayaa/Berkeley'

-----------------------------------------------------------

Check file cache database...

File cache integrity is ok

-----------------------------------------------------------

Check if file is readable...

Alfred has permissions to read this file.

-----------------------------------------------------------

Check if volume '/' is indexed by macOS...

Indexing is enabled on this drive

-----------------------------------------------------------

Check direct file metadata...

⚠️ Direct metadata is missing, this file is likely not indexed by macOS

Display Name: 
 Other Names: 
Content Type: 
   Last Used: 

-----------------------------------------------------------

Check mdls file metadata...

macOS metadata missing essential items

kMDItemFSContentChangeDate = (null)
kMDItemFSCreationDate      = (null)
kMDItemFSCreatorCode       = ""
kMDItemFSFinderFlags       = (null)
kMDItemFSHasCustomIcon     = (null)
kMDItemFSInvisible         = 0
kMDItemFSIsExtensionHidden = (null)
kMDItemFSIsStationery      = (null)
kMDItemFSLabel             = (null)
kMDItemFSName              = (null)
kMDItemFSNodeCount         = (null)
kMDItemFSOwnerGroupID      = (null)
kMDItemFSOwnerUserID       = (null)
kMDItemFSSize              = (null)
kMDItemFSTypeCode          = ""

-----------------------------------------------------------

Troubleshooting failed
 

Link to comment
28 minutes ago, dayaa said:

Spotlight is totally ok and usable.

 

The troubleshooting report you've provided indicates that your Mac's metadata is completely missing, so Spotlight might be working off a temporary cache for now, but will eventually also exhibit the same issue of files not being found.

 

The first steps to follow when results seem unexpected is to rebuild your Mac's metadata. It's usually because the data being provided by macOS is incorrect (even if it appears correct in the current Spotlight cache), and rebuilding ensures that all this information is refreshed by the OS.

 

Even if you believe you've already reindexed, please follow the steps below specifically (as it involves deleting a cache first and ensuring Terminal has suitable permissions).

  • First, please pop open System Preferences > Security & Privacy > Privacy > Full Disk Access and add Terminal
  • Once you've done this, go to Alfred's Advanced preferences, choose "Rebuild macOS Metadata"
  • Ensure that you check "Delete .Spotlight-V100 before reindex"
  • Follow the steps in Terminal, and keep a close eye for any error messages relating to your index.

Please let me know if there are any errors. Otherwise, if it proceeds smoothly, you may need to wait up to an hour for the reindex to complete. Once this is done, make your searches again and see if your results are more as expected.

 

If your issue persists, please provide the following information:

  • Your diagnostics file, by typing ?diagnostics into Alfred (which you can email to our info@ address)
  • Examples of the File Troubleshooting reports for the files you cannot find using Alfred and whether they still show the broken metadata

Cheers,

Vero

Link to comment

VICTORY

 

I was also having this issue (Alfred file searching not working) after transferring my macos Monterey via their Migration Assistant. (Which in itself was a huge pain and Monterey is filled with bugs but ignoring that for now...)

 

Using the wonderful suggestions here, I was able to do this to solve the issue:

1. Switch to another user on the machine, play around with Alfred, then switch back and it magically works. (Per this post

)

2. Rebuild the index following instructions from this post 

 

Link to comment
14 hours ago, Vero said:

 

The troubleshooting report you've provided indicates that your Mac's metadata is completely missing, so Spotlight might be working off a temporary cache for now, but will eventually also exhibit the same issue of files not being found.

 

The first steps to follow when results seem unexpected is to rebuild your Mac's metadata. It's usually because the data being provided by macOS is incorrect (even if it appears correct in the current Spotlight cache), and rebuilding ensures that all this information is refreshed by the OS.

 

Even if you believe you've already reindexed, please follow the steps below specifically (as it involves deleting a cache first and ensuring Terminal has suitable permissions).

  • First, please pop open System Preferences > Security & Privacy > Privacy > Full Disk Access and add Terminal
  • Once you've done this, go to Alfred's Advanced preferences, choose "Rebuild macOS Metadata"
  • Ensure that you check "Delete .Spotlight-V100 before reindex"
  • Follow the steps in Terminal, and keep a close eye for any error messages relating to your index.

Please let me know if there are any errors. Otherwise, if it proceeds smoothly, you may need to wait up to an hour for the reindex to complete. Once this is done, make your searches again and see if your results are more as expected.

 

If your issue persists, please provide the following information:

  • Your diagnostics file, by typing ?diagnostics into Alfred (which you can email to our info@ address)
  • Examples of the File Troubleshooting reports for the files you cannot find using Alfred and whether they still show the broken metadata

Cheers,

Vero

Thanks so much for your help and it worked!

 

Thanks again and add Terminal into the Full disk access was the step I missed. 

Link to comment

I have also tried the above methods and cannot seem to get it working either. Spotlight works fine but nothing from Google Drive.

 

The only way I can get it to work is if I change my Google Drive settings from "Stream Files" to "Mirror Files" where all of the drive files are copied onto the mac.

Edited by iclark
Link to comment
11 hours ago, iclark said:

I have also tried the above methods and cannot seem to get it working either. Spotlight works fine but nothing from Google Drive.

 

Aside from Google Drive, is everything else found in your searches? Google Drive is a completely different beast and unrelated to this thread.

 

An update to Google Drive in recent months has caused Spotlight and macOS to stop indexing the files. 

 

Google is very opaque about what's happening under the hood with Google Drive so we don't know whether they intend to re-enable indexing in the future. If you take a look at this thread, @vitor has created an excellent Google Drive search workflow:

 

 

Cheers,
Vero

 

Link to comment

Solved this issue per @Vero's instructions, but wanted to share in case it helps. 

 

  1. I got a new Apple Silicon, used Migration assistant, updated to 12.0.1
  2. Saw the same issues as everyone here - all searches worked fine except files, but Spotlight worked fine, and diagnostics were all good
  3. Rebuilt the index, still no luck

I did the new user account even though I cannot see how that could matter, still no luck. 

 

Then I realized ... I did not click "delete .Spotlight-V100". So...

 

Went back to Advanced -> ReBuild MacOS Metadata, made sure to check that option - success!

 

Whereas Spotlight still found all files during the index, Alfred slowly found more and more, and after about 20 mins, it found anything I could think of. So it does seem Spotlight can use some sort of cache. 

 

I believe the people who created another account and then came back and saw it work were likely just burning the time the index needed to complete.

Link to comment

Same here - @Vero's instructions in post 5th November solved this issue for me.  

 

1) Migrated from my 2018 MacBook Pro to 14-inch MacBook Pro with M1 Pro chip (Running macOS Monterey 12.0.1)

2) File search not working

3) Followed the procedure described by @Vero (i.e. rebuilding metadata etc.)

4) Had two cups of coffee

 

Alfred --> Find now locates files just like it should. 

 

👍 

 

Link to comment
3 hours ago, Hhuang said:

I created a new user profile, but same result, search is still not working.


Do the steps posted November 5th. That’s what has been working for most people.

 

I understand you want your problem solved, but you also have to put in a bit of effort to search for the resolution and read the thread. We help those who help themselves. This was a problem caused by Apple that doesn’t affect everyone, so different solutions may work for different people.

Link to comment
  • 2 weeks later...
  • vitor changed the title to File Search issue in MacOS Monterey after Migration Assistant
  • 1 month later...

So hope this helps someone,

 

What i realized is that when Alfred fails to look into subfolders, spotlight fails as well (when a search is scoped to subfolders)

 

using Rebuild macOS metadata didn't help (the command line method, which seems to only kick of a partial reindex)

but, adding / to privacy tab (then wait for indexing to update by checking spotlight), and removing it later (and wait for a potentially really long reindexing process) eventually helped

 

 

 

Link to comment
  • 2 weeks later...

Hi there

I've tried follow the step rebuild metadata delete spotlight-V100 , create a new account, delete all search scope folder and add macintosh HD, but still no luck, plz help

I used time machine transferred macbook pro m1 monterar 12.1

Edited by wei
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...