Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'A better way' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
A better way
Authored by: jjccgg on Fri, May 13 2005 at 12:10PM PDT
As the previous poster said, first modify /etc/hostconfig to read:
SPOTLIGHT=-NO-
Then to get rid of the existing index, run these two commands from Terminal:

mdutil -i off /
mdutil -E /
The first command disables indexing on the boot volume, and the second erases the existing template. You can then use Activity Monitor to kill any mds or mdimport processes or else just reboot. Futzing with permissions will probably break OS updates that try to update files in the zeroed-out directories and of course won't survive a repair-permissions run.

If you later change your mind and decide you want Spotlight after all, it's easy to reactivate. Set

SPOTLIGHT=-YES-
in /etc/hostconfig, run in Terminal:
mdutil -i on /
and reboot.

[ Reply to This | # ]
Right
Authored by: mholve on Fri, May 13 2005 at 6:31PM PDT
Right on the money. This is the proper way to do it, and works nicely.

Using the original hint is butchery - future Mac OS X updates might have issues (unable to update all parts or worse, updating only some, etc.). Also, running Repair Permissions might very well undo your handywork.

---
--
Everything Mac - http://everythingmac.org

[ Reply to This | # ]

what happens
Authored by: timcrawf on Sat, May 14 2005 at 2:17PM PDT
what happens to command-f and the search filed in finder windows once Spotlight is disabled? Do the stop functioning, or revert to Panther searching methods?

[ Reply to This | # ]
what happens
Authored by: bluehz on Mon, May 16 2005 at 7:44AM PDT
I disabled my Spotlight in hostconfig - only to find out that too my HORROR... it now appears all Finder searching is useless. It does not appear to revert back to Panther -style searching. I just tested several Finder searches inside directories with about 20 files in them. Searched for KNOWN file inside that dir. Finder search just chugged and chugged and spun and never found anything. This is DISGRACEFUL and I hope it is changed soon. My aging G4 can not handle the strain of Spotlight - so I have no other option but to disable it... but I still need Finder searches..... what were they thinking!!!

[ Reply to This | # ]
Finder searching with Spotlight
Authored by: scbarton on Thu, Sep 8 2005 at 8:12AM PDT
I did NOT disable Spotlight in hostconfig, but DID turn off indexing.

To my delight, Spotlight now only searches filenames in Finder. DISCLAIMER: Tiger 10.4.2, and I have not tested it extensively yet.

[ Reply to This | # ]
Finder searching with Spotlight
Authored by: macjonte on Wed, Jan 4 2006 at 3:47AM PST
Great, how do I do that?
I have a data rescue machine, and I can't run Tiger on it since Spotlight goes in and tries to write to damaged disks...

[ Reply to This | # ]
A better way
Authored by: mirv42 on Tue, May 24 2005 at 1:50PM PDT
How about a way to disable spotlight (even temporarily) but *without* rebooting?

[ Reply to This | # ]
A better way
Authored by: g3ski on Wed, Mar 21 2007 at 2:46PM PDT
mdutil(1) BSD General Commands Manual mdutil(1)

NAME
mdutil -- manage the metadata stores used by Spotlight

SYNOPSIS
mdutil [-pEs] [-i on | off] volume ...

DESCRIPTION
The mdutil command is useful for managing the metadata stores for mounted
volumes.

The following options are available:

-p Publishes the local copies of the metadata stores for the volumes
indicated to their real drives.

-E This flag will cause each local store for the volumes indicated to be
erased. The stores will be rebuilt if appropriate.

-i on | off
Sets the indexing status for the provided volumes to on or off. Note
that indexing may be delayed due to low disk space or other condi-
tions.

-s Display the indexing status of the listed volumes.

SEE ALSO
mdcheckschema(1), mdfind(1), mdutil(1), mdimport(1)


---
"I want my two dollars!"

[ Reply to This | # ]