Is there any way to make Mac OS X Spotlight only index the file names and not the contents?

8

1

I do understand that the point of Spotlight is to look inside files, but it also returns file name matches, and that's what I need most of the time. Besides, Spotlight is running so absurdly slow on my system (Snow Leopard on the iMac '08), it's just unusable. I downloaded Canary and Spotlight wasn't able to find the app file for 15 minutes. It was already in the download stack, but as far as Spotlight goes, the file doesn't exist.

Hence, I would like to know of a way to make Spotlight only index the file names, which would perhaps make it a bit faster. I'm looking at mimicking the behaviour of Windows applications such as AvaFind or Search Everything

Edit: Let me highlight the fact that I am looking for an AvaFind or Search Everything replacement for Mac OS X. Go try one of these on a Windows machine and you'll understand my disappointment with Spotlight or any other popular search tools in OS X.

aalaap

Posted 2009-09-02T11:59:15.853

Reputation: 592

Answers

6

As far as I know, Spotlight is hardcoded to work this way. Most people in your situation simply disable spotlight, and use an alternative, like EasyFind.

If this is too drastic, you may want to clear out Spotlight's .Spotlight-V100 file at the root of your drive to force reindexing. Once reindexed, you might see better performance (and you might not).

jweede

Posted 2009-09-02T11:59:15.853

Reputation: 6 325

F***! EasyFind is exactly what I needed! Well, I'd have liked find-as-you-type, but when did hitting Return once hurt anyone?

Thank you so much! – aalaap – 2009-09-02T13:05:27.960

always glad to help. :) – jweede – 2009-09-02T13:08:45.180

I've been using EasyFind for a few days now. While it does deliver results faster than Spotlight, it's still slow for the kind of results I'm expecting. Still, it's free, so... – aalaap – 2009-09-06T04:56:00.980

3

There is also the command locate, which is already installed.

From the locate man page:

    The locate program searches a database for all pathnames which match the
     specified pattern.  The database is recomputed periodically (usually
     weekly or daily), and contains the pathnames of all files which are pub-
     licly accessible.

Richard Hoskins

Posted 2009-09-02T11:59:15.853

Reputation: 10 260

1Note that, by default - at least on earlier releases of Mac OS X - the command to update the locate(1) databases only runs once a week and excludes some directories. – jrg – 2009-09-05T23:27:56.083

I didn't spend $1000 on an iMac with Mac OS X to open a Terminal window and run UNIX commands! :-P

I always prefer using Locate when I'm in Ubuntu (on a crappy old laptop and on my PS3), but when in OS X, the standards are a bit high :-) – aalaap – 2009-09-06T04:57:33.007

1@aalaap Whatever. (Actually, $1000 for a Unix workstation with the power of an iMac is a steal. But I understand, you don't want to type.) – Richard Hoskins – 2009-09-06T05:05:06.003

2aalaap: No, you spend $1000 on an iMac that searches your files contents AND filenames in seconds. – Josh Hunt – 2009-09-06T05:10:28.427

1

Just type name: Your search string in spotlight, that'll be it. Check out this article guys, Power Search using Spotlight

windmaomao

Posted 2009-09-02T11:59:15.853

Reputation: 111

1

I would highly recommend switching to Quicksilver or Alfred. Both are free. Quicksilver is still in beta, but don't let that scare you off; I've had virtually no problems at all. The only time I did have a problem was when I had a lot of applications open, and QS froze. I still keep Spotlight just in case QS freezes again. Hope this helps!

daviesgeek

Posted 2009-09-02T11:59:15.853

Reputation: 1 469

1

Actually, you just need to use an alternate interface to Spotlight. HoudahSpot allows you to search by any criteria of your liking. E.g. search by file name only.

Pierre Bernard

Posted 2009-09-02T11:59:15.853

Reputation: 201

0

Since this is already off the announced topic, you should try Google Desktop or quick search box, depending on your OSX version. It's been a good alternative to search for files on desktops for a long time already, including linux and specially on Windows.

cregox

Posted 2009-09-02T11:59:15.853

Reputation: 5 119

0

I use Google QSB, HoudahSpot, Quicksilver, EasyFind & every other search app and spotlight GUI available. Still none of them come close to AvaFind or Search Everything. I use both OSX & XP/7 daily, but the horrendous search capabilities (or lack thereof) in OSX make it real a deal-breaker for me. Even OS7's find was much faster and more relevant. I always ask other OSX users "how do you find files quickly?", and they almost always shrug their shoulders. Seems like everyone hates Spotlight, unless you like getting dictionary definitions in place of a file's location. Is there a GUI front end for the locate command and does it work as quickly as Search Everything or AvaFind?

cloudseat

Posted 2009-09-02T11:59:15.853

Reputation: 1

Just so you know, I have always had the dictionary definitions appear at the very end of the list (I'm assuming that's the default, but maybe not), and you can look at the file's location by holding the ⌘ key, or open it in Finder with ⌘↩︎ or ⌘-double-click. – SilverWolf - Reinstate Monica – 2017-10-02T16:47:27.903

0

Rather than using spotlight, do your search in the upper right hand corner of a finder window. That'll search only file names.

carrieactually

Posted 2009-09-02T11:59:15.853

Reputation: 11

That too defaults to searching contents, but even after switching to just file names, it's still too darn slow! – aalaap – 2009-09-06T04:51:43.113