Following some advices I found on this post, I previously added some volumes in the spotlight privacy tab...so this is why terminal gave me the "Indexing and searching disabled." result.
Now I've removed those volumes from the privacy tab and repeated the "mdutil /Volumes/_yourshare_ -i on" command and now the result is "Indexing enabled".
In fact now the indexing seems to be working as i'm now able to search files....even if it is not flawless as before...
hc-amis thank you very very much!
Just wanted to post MY results from a couple of the solutions offered inluding EasyFind.
1 - I tried the the re-indexing terminal command and it DID start indexing after about 30-60 secs
2 - I downloaded EasyFind to compare
So, I had a shared folder named "chap" inside one of the main folders on the share
BOTH were able to find files, no problem.
However, neither was able to find the "chap" folder. Htye could only find it when I actually opened the main folder and then ran the search from the main folder.
EasyFind had the same issue as Spotlight in this case, I'm not sure why they don't search for sub-folders.
Anyway, still hoping for a solution.
searching a NAS drive share
will try to post back after searching from our other Mac running 10.6.8
I had the exact same problem. Using finder/folder search on a mounted drive was not doing anything. Immediately went to "0 items". Based on some suggestions here, I tried using the following terminal command and was getting same error as others:
sudo mdutil /Volumes/MY_VOLUME -i on
Error: unable to perform operation. (-400)
Error: unknown indexing state.
I then tried adding my drive to Spotlight > Privacy list, as suggested here, but was alerted with an error saying I couldn't add the drive. This made me suspect that something was corrupt. Maybe spotlight prefs. So I deleted the prefs. This had no effect. Then I googled reseting Spotlight and came accross a solution to reset your Spotlight cache. I opened up terminal and typed: (This will cause your Spotlight to re-index everything! So it might take a while.)
sudo mdutil -E /
This solution worked and I'm now able to search all my network drives. Hope this helps others
It is a long thread - indeed. I should create a new one with just the answer and provide the link here or something.
Glad it worked.
You should find yourself rarely issuing that command.
Keep these in mind.
1 - Make sure indexing is 'on' for the SMB volume: sudo mdutil -i on path-to-smb-volume
2 - Since the index is stored locally on the client's volume, the SMB server MUST remount with exactly the same name each time or it can't pair up the server with the local index. In other words, if the server name changes or if it is a local SMB drive whose name you change the index won't pair up.
Hope this helps.
OK I created a new thread with just the answer … https://discussions.apple.com/thread/4693684
I can't believe how long this thread has become.
I recommend people who are having trouble, just use the free app, easyfind. When I had issues with search, which I don't use much of I used it daily and it works!
Maybe the whole thing is broken, I can share an urelated issue. Mail search is completely messed up. I have to use spotlight from the upper right corner to get results - very frustrating. I won't get into it here.
I have my networked drives indexed in Spotlight, and searches seem to be functioning as expected, but I am disappointed with one detail.
I have a huge collection of tagged images on the network drive, and Spotlight doesn't seem to "see" those tags, even though it can locate the image files if I type a filename (full or partial). The same files, when copied to my hard drive, are locatable using the image tags embedded in the files.