El Capitan upgrade - Search not working in Mail or iCal

I've seen many people have this issue with no solutions. Ever since I upgraded to El Capitan, my search function is not working properly in Mail or iCal. It works for some items (it seems to work for older items, but not new items), but my job demands that it work for EVERYTHING. This is severely handicapping me on an hourly basis. I've attempted all the fixes that the forums suggest - rebuilding, re-indexing, etc. Nothing is working. Is there ANY solution? I'm pulling my hair out.

MacBook Pro with Retina display, OS X El Capitan (10.11.2)

Posted on Jan 15, 2016 8:34 AM

Reply
40 replies

Jul 23, 2017 8:21 PM in response to slozos

Solved it finally. Spent countless hours on trying all kinds of different things mac support rep instructed. Even spoke with senior tech. Nothing worked. How useless.


I incidentally came across a simple solution. Counterintuitively, you have to "uncheck" mail under spotlight preference. Then search works under "Mail" app, but mail search result won't show up under "Spotlight". For some reason, you can't have both search options.

Jan 15, 2016 3:53 PM in response to Linc Davis

Of course! I've rebuilt my Mail inbox and rebuilt my Spotlight index (added my HD to the "privacy" portion of spotlight, then removed). Any other recommendations are greatly appreciated.

The strange thing is, both Mail and iCal seem to find older entries with no problem. Anything received or entered into iCal over the past couple weeks does not come up when searched for.


Jan 15, 2016 5:43 PM in response to slozos

Please quit Mail. Force quit if necessary.

Back up all data before proceeding.

If you're running OS X 10.11 ("El Capitan") or later, triple-click anywhere in the line below on this page to select it:

~/Library/Mail/V3/MailData

If you're running an older version of OS X, use this line:

~/Library/Mail/V2/MailData

Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder

from the menu bar. Paste into the box that opens by pressing command-V, then press return.

A folder window will open. Inside it there should be files with names as follows:

Envelope Index

ExternalUpdates.storedata

Move those files to the Desktop, leaving the window open. Other files in the folder may have longer names that begin as above. Move those files, if any, to the Trash.

Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is damaged and that Mail has to quit. Click OK. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.

If the import operation stalls or fails with an error message, quit Mail, delete the two new index files (keeping the original ones that you moved to the Desktop), and try again. According to many reports, the second attempt may succeed after the first one has failed.

Test. If Mail now works as expected, you can delete the files you moved to the Desktop. Otherwise, post your results.

Jan 19, 2016 1:11 PM in response to Linc Davis

The mailbox importation failed about halfway through like you said it might, and it said I didn't have enough room on my startup desk to continue. Strange, because I didn't realize I would need space for my mailbox, as it was already occupying the space it is now refilling. I deleted a bunch of extra files on my hard drive and prompted Mail to re-import my messages again. It took about an hour, but got all the way through without any issues, until the end. The "importing mailbox" box is still up, and it seems to have frozen. It has imported all of my messages, says the time remaining is "less than a minute", but is not opening my mail program. How to proceed?

Jan 19, 2016 1:29 PM in response to slozos

Disregard my last post, it finally came back up and Mail appears to be in working order.


However, I still have the search issue I had before.


Our job numbers are based on the calendar, the first two digits are the current year, and the following numbers are chronological. So, the first job we've created this year was 161. It seems to be this series of numbers that are not being found in my email when I search. Job number 1641 was just delivered to my inbox, and I tried to search for 1641 to test my search function. Zero results found. However when I search older job number that was created/emailed out last year, like 151583, every single email containing those numbers show up with no problem.


Same issue with ical.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

El Capitan upgrade - Search not working in Mail or iCal

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