All Finder searches yield zero results. I suspect it's because "Shared" is in every search criteria.

I'm trying to search for something on an iMac using Finder. Every search includes the parameters "Shared" at the end of the list of locations & sub-locations. I can't (don't know how) to change it. I suspect that is the root of my problem why every search request yields nothing.


Can anyone:

a) tell me how to delete this search parameter, and/or

b) what else might be at the root of my inability to find anything using Finder?


Thanks!

iMac 27", macOS 10.13

Posted on Mar 11, 2020 5:49 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 11, 2020 10:25 AM

Shared shows on my 10.13.6 installs.


How to rebuild the Spotlight index on your Mac

If searching your Mac doesn’t return expected results, rebuilding the Spotlight index might help.


  1. Choose Apple menu () > System Preferences, then click Spotlight.
  2. Click the Privacy tab.
  3. Drag the folder or disk that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the Add (+) button and select the folder or disk to add.
  4. To add an item to the Privacy tab, you must have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”
  5. From the same list of locations, select the folder or disk that you just added. Then click the Remove (–) button to remove it from the list.
  6. Quit System Preferences. Spotlight will reindex the contents of the folder or disk.


Manually Rebuilding Spotlight via Terminal

If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc. To re-index only for a specific drive, use the /Volumes path. For example, for an external drive named “MiniMe,” the command would look like this:


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.

35 replies
Question marked as Top-ranking reply

Mar 11, 2020 10:25 AM in response to riandavis

Shared shows on my 10.13.6 installs.


How to rebuild the Spotlight index on your Mac

If searching your Mac doesn’t return expected results, rebuilding the Spotlight index might help.


  1. Choose Apple menu () > System Preferences, then click Spotlight.
  2. Click the Privacy tab.
  3. Drag the folder or disk that you want to index again to the list of locations that Spotlight is prevented from searching. Or click the Add (+) button and select the folder or disk to add.
  4. To add an item to the Privacy tab, you must have ownership permissions for that item. To learn about permissions, choose Help from the Finder menu bar, then search for “permissions.”
  5. From the same list of locations, select the folder or disk that you just added. Then click the Remove (–) button to remove it from the list.
  6. Quit System Preferences. Spotlight will reindex the contents of the folder or disk.


Manually Rebuilding Spotlight via Terminal

If the aforementioned Spotlight control panel approach doesn’t spur a reindexation of the drive, you may need to initiate it manually through the command line. Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc. To re-index only for a specific drive, use the /Volumes path. For example, for an external drive named “MiniMe,” the command would look like this:


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.

Mar 11, 2020 6:07 AM in response to riandavis

In my Finder Preferences, I have two things set, with the latter having substantial impact on what you see in the Search panel.

  1. General
    1. New Finder windows show: 🏠 Yourname
  2. Advanced
    1. When performing a search: Search the Current Folder


With those settings, the items shown in the Search toolbar will be: This Mac "X", where "X" is the current folder name where you started the search. There will be no Shared folder item present.


Finder searches using the interface that you have shown depend on certain properties appearing in the first selector (kind), or adding them from the Other… menu item on that Kind menu. It also depends on how these are compounded to form the overall search criteria. I do not use this form of search in the Finder, preferring Spotlight queries in the normal Finder window search field, or Spotlight itself. These are explained and demonstrated in the Narrow your search results on Mac content.

Mar 11, 2020 6:47 AM in response to riandavis

The other item I did not mention in the Finder Preferences was:


  1. Sidebar
    1. ☑︎ 🏠 username


When you click that in your Finder Favorites Sidebar, it takes you to your home folder, if you happen to be elsewhere.


You do not need to select your startup (e.g. Macintosh HD, etc.) drive name prior to a search. That may pickup the Shared folder as it is included in MacIntosh HD folders. I never select the startup drive prior to any Finder search, and that may be contributing to your picking up the Shared folder location which is part of the MacIntosh HD contents.


Just start in your home directory, or a specific folder, and if nothing is found, then click the "This Mac" alternative which represents your search applied to the entire Mac outside of your current search location.

Mar 11, 2020 9:21 AM in response to riandavis

Neither High Sierra, Mojave, nor Catalina will show that Shared folder in the Search toolbar. At least, in my implementations of these operating systems. They also do not offer All My Files in the Favorites sidebar. OS X El Capitan does show the Shared folder in the Search toolbar, even with the same Finder Preferences settings as on my newer macOS releases, and does offer All My Files in the Favorites collection. I always disabled All My Files in the Finder Preferences : Sidebar.


I would simply ignore the Shared folder when it appears, as there is nothing in there of interest to you anyway.


Eject that Flash Player installer from your Desktop if you have not done so already.

Mar 11, 2020 9:26 AM in response to VikingOSX

Thor... I appreciate your hanging in there with me.


I have High Sierra, yet it clearly shows the Shared folder, but that, I now believe, is not part of my problem. And, I can certainly ignore the Shared folder, but it doesn't solve my problem. As soon as I type anything whatsoever, regardless of how simple, there are no 'hits' in my search. None. Same in Spotlight. I don't know why it's not finding absolutely anything.

Mar 11, 2020 2:33 PM in response to BDAqua

I did as you suggested. Spotlight did not need "setting up" as all of the parameters were the same as on my primary admin account (which I believe to be the correct settings, as screenshots above will indicate).


No change to the search results. Finder (or Spotlight) found nothing. No user files, no user folders, not even any system-generated folders like "Documents" or "Downloads"...

Mar 12, 2020 11:31 AM in response to BDAqua

Thanks.


I tried that. Held my finger on <shift> for 25 minutes while it booted into safe mode (the point being that it seemed awfully long, and the fan was on overdrive the whole time).


Images below show result (no change from before). First image: Finder with no search criteria entered. Second image: Finder with "resume" entered (no hits whatsoever).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

All Finder searches yield zero results. I suspect it's because "Shared" is in every search criteria.

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