Spotlight was not searching into certain files, even if simple text files (in my case .INI files)
- Download TextWrangler.app from the App Store.
- Reindex (?)
mdimport -r /System/Library/Spotlight/RichText.mdimporter
End of story.
- In terminal, type
mdimport -n -d1 file.extention
You should see one of the above, dependig if the type file is known by the OS or not
-
unknown UTI :
Imported 'file.extention' of type 'dyn.ah62d4rv4ge80e2pcr74u'
-
Feed MyUTIs.bundle with this file extention.
-
Go to next bullet
-
-
known UTI :
Imported 'file.extention' of type 'com.domain.other'
- Add this type in
/System/Library/Spotlight/RichText.mdimporter/Contents/Info.plist
(or other mdimporter if appropriate) - Reindex
mdimport -r /System/Library/Spotlight/RichText.mdimporter
- Add this type in