System Preferences>Spotlight>Privacy... Add folders and drives to the list.
Not entirely sure whether it will 'remember' external drives that are mounted and unmounted but I don't see why not.
My internal backup drive and also my scratch drive are set this way.