Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Spotlight dispays to many matches for each file type

My spotlight displays ever file that has a match in each file type.

Usually you see up to 5 nearest matches to your search in each Category.

I will see not the nearest matches but every single match. Since there are only 26 spaces to be displayed that means I can only see one file type on my drop down and they are not ranked by nearest match.

This drives me mad.

Anyone know how to make spotlight change how it displays items in the drop down box?

Also I cannot change the order of the Categories, it is always PDF first. If I turn off PDF it is always Documents.


I have used Terminal to turn it off and on, Reindexed, repaired permissions on the HD, cleared the Spotlight cache, repeatedly and nothing has helped.


Could it have to do with how my Mac arranges files….? Any suggestions would be appreciated.

MacBook Pro, OS X Mavericks (10.9.1)

Posted on Jan 17, 2014 3:42 AM

Reply
1 reply

Jan 17, 2014 4:50 AM in response to CaiteDragon

Found a solution.

It was connected to how my mac auto arranges my files. Each folder stores it's view settings in a hidden file named .DS_Store. I went in to terminal and reset all of them.

(Please note: just in case, disconnect from external drives and disconnect from networks before you do this, your It manager will kill you if you remove all the settings on the server)


If you want to use the original auto-arrange feature then you need to remove all of these .DS_Store files and set your view preferences from as high up the file system structure as possible. I chose to start from / since I an resetting spotlight. If you are just trying to reset it in the finder search, you may be happy just to do it from your home folder.

If you are not comfortable with copying and pasting or you are un-comfortable using Terminal, STOP RIGHT NOW.



The command we will use in Terminal will simply remove all instances of those hidden .DS_Store files on your system. In itself this poses no hazard or danger to OSX. If however you type/copy/paste the command incorrectly you can cause damage by removing files that you did not want removed.



Terminal Procedure



1. Open Terminal by going to Applications > Utilities > Terminal.

You will be presented with a screen with a $ prompt. The terminal is waiting for your commands.



2. Type/paste in the following command to get to the top level of the file system (Macintosh HD).


Code:


cd /Volumes

3. Type/paste in the following command to remove all instances of .DS_Store from your local hard disk and any attached network disks. This may take a minute or two depending on how many folders it has to search. When the removal task has finished you will see the $ prompt appear again on the next line.


Code:


find . -name .DS_Store -exec rm {} ';'


Close the Terminal window.



Of course, now every preset I had in displaying folder in finder is gone. So I reset it for my favourite layout using the following steps.( You pick your personal favourites)


You want to be able to see the top-most level in Finder.

  1. Open up a Finder window and select the type of "View" you prefer
  2. From the Menu bar (Top Left, after the Apple) select Finder > Preferences.
  3. Click on the Sidebar tab and put a tick in the box for Hard Disks. Close the Preferences Window.
  4. In the Sidebar of your Finder window click on Macintosh HD. You are now in /, the top-most level of the file system. Any view settings that we set here will propagate down to all sub-folders, even those on your network drives, e.g a NAS.
  5. Right-click (ctrl and click or two finger tap) on the white-space of the Finder window and select "Show View Options". You will get the View Options pop-up window appear.
  6. Third item on the list in the pop-up window, click the button Arrange By and set it to None.
  7. Fourth item on the list click the button Sort By and select Snap To Grid.
  8. Third item on the list once again but this time select Arrange By Name. This will NOT affect how the special folder "All My Files" displays it's contents. The fourth item "Sort By" will grey itself out at this point, don't worry; it's taken the "Snap To Grid" setting we want.
  9. Set any other options that you want to from this pop-up window such as text size, icon size, grid spacing etc. Note that if you use long filenames then set your icons small but grid wide.
  10. At the bottom of the pop-up window click the button Use As defaults. Don't worry if it's greyed out since that simply means you have already set the defaults to display this way.


Now when you re-size your Finder windows they will auto-arrange the contents in alphabetical order and when you drag anything into any folder it will automatically align itself to the grid.

Spotlight dispays to many matches for each file type

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.