Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't really understand how Spotlight works, I sometimes search for a file that I know it exists, and Spotlight doesn't find it.
Then I browse to it and it's there.
The volume or folders where it is in are not excluded from Spotlight, I've made sure of that.
Should I (and how?) rebulid Spotlight's index? or otherwise do something so every file can be found?

enter image description here

Edit: I searched for textwrangler and Spotlight found it, also found it with barebones, so it looks like not every pattern that would match the filename works the same for Spotlight.

share|improve this question
The way that Spotlight finds the files is based on the frequency that you are using that file. So if in the first instance you can't find your file then you can try first press "Show All" results where your file might show-up. – Tigran Khanzadyan May 30 '11 at 17:04
Follow the advice here:… – Martín Marconcini May 30 '11 at 17:19
@Tigran (what an awesome name! I want to be called Tigran) I'm not using Spotlight from the menu bar, I'm using it from the search box on a finder window, so there's no Show All, actually I think it's already showing all. Isn't it a little clumsy that Spotlight only finds the most used files, which you probably would find yourself anyway? – Petruza May 30 '11 at 18:48
@Martín: but I re-installed the OS a week ago, the index shouldn't be corrupt already, right? – Petruza May 30 '11 at 18:49
@Martín: how do you link to an answer? – Petruza May 30 '11 at 18:51
up vote 2 down vote accepted

Spotlight generally only searches at the beginning of words. It can find barebones because it is right after a period, or textwrangler for the same reason, but not wrangler. (It also understands underscores, hyphens, and CamelCase as marking the beginning of words.)

To work around this, instead of doing a straight up spotlight search do a search in Finder (with cmd+F or cmd+option+space). Leave the search box blank, and click the plus button next to where it says "Save." Then make your query "Name" - "contains" -"wrangler" and you are good.

You also need to be careful because I think the file you are searching for is considered a system file. If you are searching within the Preferences folder you will get the right result, but if you are just searching within the home folder or on the entire hard drive, the system file won't show up, unless you push the plus button again and add to your search query "System files" - "are included." Since "System files" isn't in the dropdown box by default, you will probably need to click "Other..." and then find it. You will have the option of adding it permanently to the dropdown box.

search Edit: Added image for clarity

share|improve this answer
This is correct +1 I added an image to make it clear :) Make sure that the search box (top right) is empty or you will get strange results, because that is also taken into consideration. – Martín Marconcini May 31 '11 at 8:43
@Martín Thanks for the picture – Nathan Grigg May 31 '11 at 14:23
Great answer, thanks! and great screenshot @Martín, by the way can you tell us what all your toolbar buttons are? they look interesting. – Petruza May 31 '11 at 15:56
Ooooohhhhhhhhh!!! Other... menu option opens the door to whole new search capabilities! +1 I'm growing to love Spotlight – Petruza May 31 '11 at 16:01
@Petruza left to right: icon view, list view, column view, cover flow, quick look, Action, Dropbox, ShellHere>, delete and burn. – Martín Marconcini May 31 '11 at 21:23

Your Answer


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.