I have a SpotLight importer for my custom document type. At one point it was working, but apparently it stopped working a while ago. After rebuilding the SpotLight index (-E) in the course of debugging, the few documents that previously worked no longer work.
I have tested the importer using mdimport -t -d3
and the output looks reasonable.
However, if I do a simple search such as mdfind 'kMDItemTextContent == "gasoline or propane"'
, the text is not found, even though it is present in the importer output. In fact, if I save the importer output to a file, the text is found in that file.
The console log contains many instances of this error from mdworker_shared:
All kCFPreferencesCurrentUser domains in this process will be volatile, because homeDirPath starts with /var/empty
Is there anything I can do to figure out what is going wrong?
I'm running on macOS 11.5.1.