How to gain insight into spotlight index?
This command will list all files indexed by spotlight system:

mdfind "kMDItemDisplayName == '*'"


To store the output in a file:

mdfind "kMDItemDisplayName == '*'" &gt; listOfFiles.txt