Spotlight database file format
The Spotlight database file format is used by Mac OS X to store Spotlight Desktop search information.
MacOS command line tools
MacOS has several command line tools to query a Spotlight database
- mdfind - finds files matching a given query
- OSX Spotlight Queries, by Sarah Edwards, December 2015
- Shining a light on Spotlight: Leveraging Apple's desktop search utility to recover deleted file metadata on macOS, by Tajvinder Singh Atwal, Mark Scanlon, Nhien-An Le-Khac, October 2018
- The user spotlight database, by Yogesh Khatri, October 16, 2018