Google’s official client for Mac OS, “Backup and Sync,” is no more. It has been replaced by “Google Drive” now. One problem is that the new approach exposes files as a Network Drive, which Spotlight does not index. So, you can no longer search for Google Drive files via Spotlight unless you re-enable the indexing.

After trying several non-working solutions, I found one that enables indexing on Google Drive.

Bash
1
2
3
4
# Enable Google Drive indexing and wait for a few minutes for the files to be indexed
$ sudo mdutil -i on /Volumes/GoogleDrive/
# Confirm that indexing is enabled
$ sudo mdutil -a -i on