@Fishrrman,
"after running your commands above, when I go into Finder and click on the magnifying glass (i.e. Spotlight) and start typing in a word I get a listing of 20 files on my hard-drive..."
I noticed this too, not long ago.
Seems like even when it's turned off, Spotlight is still "linked" somehow to "local apps" like the Dictionary and Thesaurus.
What OS are you running?
I can run the following command:
sudo mdutil -a -i off
... and terminal reports that indexing is OFF on all my volumes.
Then,
I open Spotlight and type "test"
A window opens with "All", "Dictionary", "Thesaurus", "Apple", "Wikipedia"
Dictionary is selected as the default (guessing it's from local dictionary).
Thesaurus has an entry (again, probably from local disk)
I click "All" -- shows Dictionary entry, Thesaurus entry, and wiki page (perhaps it's grabbing this through Safari somehow).
When I click "Apple" -- "no entries found".
Click "Wikipedia" -- reveals wikipedia page, again, looks like it's getting this from the Safari engine and perhaps passing that on through "QuickLook"?
From the above, it looks like Spotlight is NOT "searching from the indexes", but is instead looking at "non-indexed" sources: the dictionary app, thesaurus, and going online to wiki (again, via Safari).
As such, it's had its functionality (for lack of a better term) "downgraded", but not entirely "turned off".
There may be a way to disable it further, but I don't see that in the list of terminal commands (accessible via the "man" command).
Looks like the disabling of "indexing" is as "far as it goes".
Just so you don't think I'm lazy, here is what my research has found...
1.) I didn't know the difference between Spotlight and Search in Finder!!!!!!
(Now you know why I asked y'all to explain Spotlight to me!
2.) When I open a new Finder window and do command + F and then choose "Name" "matches" ".png" I get a million hits.
3.) Any searches I do by "Name" or "Contents" seem to only return files on my Mac.
4.) I re-ran your three commands to be certain they were in place...
Spotlight is easily turned off using the terminal:
sudo mdutil -a -i off
This command stops indexing of ALL volumes:
sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes"
This command removes the Spotlight index from main volume:
sudo rm -rf /.Spotlight-V100/*
5.) Once I finally figure out how to use Spotlight (i.e. magnifying glass in the menu bar) I did some searches and keep getting
"No Results"
6.) Then I tried "apple.com" and it launched Firefox and I got some url dealing with Safari plugs on Apple's site?
I figured this meant Spotlight was still alive, and then I rebooted. I tried searching for "apple" and "apple.com" and got the same results.
Then I looked in Safari and Firefox trying to disable something to prevent Firefox from launching.
I rebooted again, and typed in "microsoft.com" and got "No Results". Then I tried "apple.com" and got "No Results".
I fiddled with unchecking Safari > Search > Include Safari Suggestions and tried rebooting and experimented some more.
In the end, I cannot get "apple", "apple.com", "google.com" or anything else to launch either Safari or FireFox. (Even when I restored Safari to it's original settings.)
7.) Anything I search for in Spotlight seems to yield "No Results",
so it appears that I successfully disable Spotlight, but who knows for sure?!
P.S. Forgot to mentioned that before I typed in
@Fishrrman's commands into Terminal, I went to System Preferences > Spotlight > Search Results and unchecked everything. I also noticed that after I ran Fishrrman's commands, that "Volumes" appeared under the "Privacy" tab. (This is consistent with advice of what I read online for how to disable Spotlight using the GUI versus via Terminal.)
I would be interested to hear your thoughts on all of this...
I am also curious what OS you are running and what your thoughts are on why your attempts to disable Spotlight apparently didn't work...
Thanks.