This short blog post will show you how to enable spotlight indexing on a network drive. I have also added the commands to disable spotlight indexing on network drive that’s already indexed.
The first thing you have to do is to make sure you connect your network drive to the network.
I think afp:// is required for indexing to actually work. I’m not 100% certain on that information though. When I try enabling indexing with cifs:// spotlight doesn’t seem to be able to index the drive, even though mdutil states that indexing is enabled. If you have trouble with the index building or not being available, it would be worth trying to enable afp:// mode on your network drive.