Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

The thing is I hate Spotlight like every software burning my cpu for no reason when I am working and I could put my cpu to better use BUT it is required to search in mail bodies with Mail so I still keep it...

What I really want to do is stop Spotlight to index anything but my emails, is there a way to do that ?

I already added the biggest folders to the ignore list but it does not seems to be enough since as I am writing this mds is happily using between 10% and 30% of my cpu :/

share|improve this question
    
Have you turned off time machine (to test this) and reboot? That is the largest consumer of mds in my experience... –  bmike Sep 6 '11 at 13:29
    
time machine is already turned off, I do not use it. –  Schmurfy Sep 6 '11 at 16:17

1 Answer 1

up vote 8 down vote accepted

If mds is continually using that much CPU then something else is wrong, that's not usual behaviour. Once the index is created, it's incrementally updated and shouldn't be using that much CPU at all.

However, you could try telling Spotlight only to display Mail Messages in searches. You'll find that option in System Preferences in the Spotlight section. (edit) This doesn't actually stop Spotlight indexing those items, but it wont display them in results.

SPotlight prefs

I think you have a more fundamental problem here with Spotlight that should be resolved. Try deleting and recreating the index with the following command:

sudo mdutil -i on -Evsa
share|improve this answer
    
I agree with Macaco. I've adjusted Spotlight to only index documents, folders, mail, contacts, applications and PDFs. My MDS is 0% at the moment. –  bg2011 Sep 6 '11 at 10:56
2  
Just to be clear - toggling search results doesn't prevent this data from entering the index. It simply filters the results from the spotlight ui in the menu bar. Explicitly adding folders to the privacy tab does exclude them from indexing altogether. –  bmike Sep 6 '11 at 13:31
    
The list is only used for display purpose as pointed by bmike, even knowing that I unchecked everything except Applications since that is the only thing I may want to access with spotlight. –  Schmurfy Sep 6 '11 at 16:20
    
You might want to include in your answer how to shutdown the mds service, force a re-index and restart it safely. It would make for a much better answer. –  cksum Sep 7 '11 at 8:53
    
@cksum done! :) –  macaco Sep 7 '11 at 10:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.