Programmatically force spotlight to index metadata for specific types of invisible files

Is there a way to do this?

The reason for this is that I'm trying to get spotlight to get automatic updates when invisible files and folders are added / removed. This behavior, I believe, is a side effect of not indexing the metadata (but I could be wrong). I came to this conclusion from this SO question .

Is the solution written by mdimporter? Will it work even for invisible file types?

+2


source to share


2 answers


After some research it seems that there is no way to force indexing of invisible folders.



Instead, I search all folders and get updates for all folders. (Still very fast if you're wondering)

+1


source


I'm not a Spotlight expert, but I'll take it anyway.

My understanding is that Spotlight will only index files of the types it knows about. If the files you want to index are of a non-standard type, then you will need to write mdimporter.



I don't know if Spotlight will index invisible files.

To start the spotlight again, check the command mdimport

.

0


source







All Articles