Advertisement

TUAW Tip: force Spotlight to re-index some apps

I recently was fortunate enough to upgrade to a MacBook Pro, which means my wife can now get her mobile on with a MacBook. After I moved everything over and got to work with the new machine, I noticed some strangeness with Spotlight and Yojimbo: apparently, thanks to some quirk of bits and bytes, Apple's fancy schmancy search wasn't bringing up any of my Yojimbo items. After requesting some support from Bare Bones Software, a most useful employee of theirs shared a handy trick that forced Spotlight to re-index my items. It worked like a charm, and it was simple to pull off.

If you have a 3rd party app that isn't behaving well with Spotlight, you could try surfing to ~/Library/Caches/Metadata. This is where apps, especially database-driven ones that want to be indexed by Spotlight, place cache data in order to make it into search results. For me, simply quitting Yojimbo, tossing out the Yojimbo folder sitting inside that Metadata folder and restarting Yojimbo forced Spotlight to get to work. The little magnifying glass began flowing on and off, and my Yojimbo items were soon appearing in my Spotlight search results just as they should.

Now I don't know if this is the end-all solution to Spotlight indexing issues like this. I only know it worked for me, and judging from the emails that occasionally bounce over the Yojimbo mailing list, I'm not the only one who's ever tangled with Spotlight's indexing quirks. I hope this tip can help you unravel any Spotlight searching issues of your own.