Rebuilding Spotlight's Database
TMO Quick Tip - Rebuilding Spotlight's Database
by , 7:30 AM EDT, July 21st, 2006
Picture this: You need to find a document on your hard drive, but can't remember where it is. "No problem," you think, "I'll just fire up Spotlight and find it in a couple of seconds." Except that Spotlight can't find the file, even though it's found it before. Sounds like your Spotlight database needs to be rebuilt.
Luckily, forcing Spotlight to rebuild its hidden database is easy, and you don't have to buy any special software. Here's how:
- Launch System Preferences. You'll find it hiding in the Apple menu.
- Select the Spotlight PreferencePane.
- Click the Privacy tab.
- Drag your hard drive into the Prevent Spotlight from searching these locations list.
- Quit and relaunch System Preferences.
- Go back to the Privacy tab in the Spotlight PreferencePane.
- Select your hard drive.
- Click the minus button at the bottom of the list.
![]() Add your hard drive to Spotlight's Privacy list to delete the corrupt database. |
|---|
![]() Remove your hard drive from the Privacy list to let Spotlight rebuild the database. |
|---|
Adding your hard drive to the Privacy list not only prevents Spotlight from searching it, but it also deletes the database it has already created. Removing your hard drive from the list lets Spotlight build a new database without any of the corruption that the original had.
Keep in mind that Spotlight can't properly search your hard drive while it is rebuilding its database. Depending on the number of documents you have, that could take several hours or more.
if you have ideas for Mac related tips that you think other TMO readers might find helpful.
Observer Comments
Fri Jul 21, 2006 10:18 am Subject: Spotlight is the worst feature in Tiger.
Spotlight is the worst-implemented feature in Tiger. This article points that out:
Quote.Except that Spotlight can't find the file, even though it's found it before...
Since when did end users have to fix their search tool? Isn't that the FINDER's job? Why should end users have to know that a spotlight database even exists?
It is absolutely insane that over a year after Tiger is released, Spotlight is still severely broken. Each update to 10.4 that has come out, I have hoped that it is fixed. Nope. There is not even a utility to fix it (like some third party utilities that are available). I manage about 150 mac users. This has held back rolling out Tiger because our users will no longer be able to reliably search for a file.
Good tip, but it is an absolute shame that it is needed.
Oh yeah, If you're not afraid of the command line...You can use mdutil in terminal to rebuild your database as well. There is a man page to learn the switches.
Fri Jul 21, 2006 12:03 pm Subject: awful severe??
As with 'any' program, spotlight 'can' be corrupted, but it's not normally the case..
To say that you're not upgrading your 150 users to Tiger simply because there's no reliable way to find files is just plain dumb, and sounds more like an excuse.. Heck, you probably shouldn't even have your files on a computer, since there's no assurance that the hard drive isn't going to crash.
Not to be name calling, but you're simply missing out on a LOT of great feaures, plus speed boosts that Tiger has over Panther.
Sun Jul 23, 2006 12:40 am Subject:
Be that as it may, the simple fact is that Spotlight is a proc hog, and is less efficient than the good ol' "find" function which it replaced. I've killed Spotlight all together on my system, which has reduced processor load, decreased the heat output of my Powerbook (and it was 101F today, so that's key), as well as extending the battery life.
If I really need to find something, I use Quicksilver.
Tue Jul 25, 2006 1:25 pm Subject: Re: awful severe??
Quotespliceguys wrote:
As with 'any' program, spotlight 'can' be corrupted, but it's not normally the case..
To say that you're not upgrading your 150 users to Tiger simply because there's no reliable way to find files is just plain dumb, and sounds more like an excuse.. Heck, you probably shouldn't even have your files on a computer, since there's no assurance that the hard drive isn't going to crash .
Well, part of our workflow happens to have some people search for files that have been created in the past to make sure we don't have to do any re-shoots. (Yes, there is a database as well, but it isn't always updated as it should be.) We need absolutely accurate file searching, or we'll be spending money re-shooting products that are already done.
As for the files... they are on a server in the first place. And spotlight is very inconsistent in that manner.
If we could just have our old search back as an option...
Use the mdutil command-line executable to flush the spotlight caches, and force them to be rebuilt.
http://www.hmug.org/man/1/mdutil.php
Quotebrett_x wrote:
Well, part of our workflow happens to have some people search for files that have been created in the past to make sure we don't have to do any re-shoots. (Yes, there is a database as well, but it isn't always updated as it should be.) We need absolutely accurate file searching, or we'll be spending money re-shooting products that are already done.
As for the files... they are on a server in the first place. And spotlight is very inconsistent in that manner.
If we could just have our old search back as an option...
Well, one wonders a couple of things on hearing that.
1. Why is your database not being used to create new jobs? If it were, then creators, dates and critical keywords could be used as part of each file creation, which in turn would throw up flags for files of a similar type, thereby killing two birds with one stone, right?
2. I'm assuming you're non-profit. A commercial operation surely would have no objections to being asked, and paid, to do a job twice.
Both I and a colleague have identical macbook pro's and both of us realized at the same time that our spotlight searches were not working at all. I'll bet that there are many users out there that have this problem and don't realize it. I am sure that it has been a couple of months at least that I have had the problem and was completely oblivious to it. But my searches were not working...
I don't think this is within the tolerances of normal functioning of a feature as important as this.
Sean
Comments are currently closed. Please email the author instead.
Recent Headlines - Updated February 3rd
- Fri, 7:27 PM
- Product News - Apple Addresses iBooks Textbook Issues with App Update
- 7:08 PM
- News - Apple Rolls Out Updated Snow Leopard Security Fix
- 5:39 PM
- Particle Debris - If Only Selling High Tech Were Easy
- 5:30 PM
- Free on iTunes - 3 Free Panorama Apps for iPhone
- 5:23 PM
- News - Tim Cook Touts Apple Charity in Employee Meeting
- 4:26 PM
- News - Apple Clarifies iBooks Author EULA, Excludes Claim on Content
- 3:43 PM
- Apple Stock Watch - Analyst: Apple Comfy With High End Smartphones & Other Notes
- 2:10 PM
- Quick Look Review - AirPort Utility 6 for Lion is for Beginners
- 1:32 PM
- Deal Brothers - 15” MacBook Pro 2.2GHz Quad-Core Intel i7: $1,699
- 10:55 AM
- News - Germany Overturns Injunction, Apple Resumes iPhone Sales
- 10:25 AM
- Hot Forum Topic - Reader Discussion: Apple, iPhones & NFC
- 9:47 AM
- News - German Court Gives Motorola iCloud Injunction
The Mac Observer Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Mac RAM Upgrades: MacBook Pro 16GB kits $475, 8GB Kits for $119.99! iMac 16GB RAM Kits (4x 4GB) for $229.99! Mac Pro Memory 32GB Kit for $399.99, 64GB Kit for $889.99! Mac Hard Drives 2TB Seagate SATA II for $249.99! Click Here!
If you're using a Mac, then you've gotta check out Online Poker Mac.
This mac poker and online casino mac site
actually does the unthinkable, it actually rewards!


