"On macOS, under each volume at location /.Spotlight-V100/Store-V2/
where represents a store id, you should find files named
store
and .store
which are the Spotlight databases. Provide these as input to this script." - https://github.com/ydkhatri/spotlight_parser
Investigating spotlight internals to extract metadata
https://www.sciencedirect.com/science/article/abs/pii/S1742287618300860
NW3C Spotlight on iOS and macOS- December 2020.pdf