Enable Spotlight indexing for volumes (network shares, external disks, etc.) in Terminal
# enable indexing
mdutil /Volumes/name -i on
# disable indexing
mdutil /Volumes/name -i off
# check indexing status
mdutil /Volumes/name -s
Enable Spotlight indexing for volumes (network shares, external disks, etc.) in Terminal
# enable indexing
mdutil /Volumes/name -i on
# disable indexing
mdutil /Volumes/name -i off
# check indexing status
mdutil /Volumes/name -s