When I use the following command to search on an external hard drive, I got everything containing the keyword in the hard drive.
mdfind -onlyin a_directory_on_an_