Comment obtenir la liste des plug-ins de Spotlight ?

 

SPOTLIGHTPREFICONS 128X128

La commande « mdimport » permet entre autre de lister les « importers » présents dans votre système. Il s’agit des fichiers qui sont utilisées par Spotlight pour identifier les fichiers et les données qu’ils contiennent, ainsi Spotlight saura quelle information indexer.

La commande à utiliser est la suivante :

$ mdimport -L

Vous obtiendrez un liste sur Mavericks :

iMac-de-Henri:~ hdrapin$ mdimport -L

2014-01-01 18:07:14.452 mdimport[53423:507] Paths: id(501) (

    « /Library/Spotlight/iBooksAuthor.mdimporter »,

    « /Library/Spotlight/iWork.mdimporter »,

    « /Library/Spotlight/Microsoft Office.mdimporter »,

    « /System/Library/Spotlight/Application.mdimporter »,

    « /System/Library/Spotlight/Archives.mdimporter »,

    « /System/Library/Spotlight/Audio.mdimporter »,

    « /System/Library/Spotlight/Automator.mdimporter »,

    « /System/Library/Spotlight/Bookmarks.mdimporter »,

    « /System/Library/Spotlight/Chat.mdimporter »,

    « /System/Library/Spotlight/CoreMedia.mdimporter »,

    « /System/Library/Spotlight/Font.mdimporter »,

    « /System/Library/Spotlight/iCal.mdimporter »,

    « /System/Library/Spotlight/Image.mdimporter »,

    « /System/Library/Spotlight/iPhoto.mdimporter »,

    « /System/Library/Spotlight/iPhoto8.mdimporter »,

    « /System/Library/Spotlight/Mail.mdimporter »,

    « /System/Library/Spotlight/MIDI.mdimporter »,

    « /System/Library/Spotlight/Notes.mdimporter »,

    « /System/Library/Spotlight/PDF.mdimporter »,

    « /System/Library/Spotlight/PS.mdimporter »,

    « /System/Library/Spotlight/QuartzComposer.mdimporter »,

    « /System/Library/Spotlight/RichText.mdimporter »,

    « /System/Library/Spotlight/SystemPrefs.mdimporter »,

    « /System/Library/Spotlight/vCard.mdimporter »,

    « /Applications/iBooks Author.app/Contents/Library/Spotlight/iBooksAuthor.mdimporter »,

    « /Applications/Microsoft Office 2011/Microsoft Outlook.app/Contents/Library/Spotlight/Microsoft Outlook.mdimporter »,

    « /Applications/Scapple.app/Contents/Library/Spotlight/ScappleMetaDataImporter.mdimporter »,

    « /Applications/Scrivener.app/Contents/Library/Spotlight/ScrivenerMetaDataImporter.mdimporter »

)

Notez les derniers de la liste, ils sont ajoutés suite à l’installation des applications sur le système comme : Scrivener, Microsoft Outlook etc… Si l’application ne propose pas de descriptif, le fichier ne sera pas correctement indexé, dans ce cas seul le nom du fichier est est utilisé.

Les résultats de l’indexation dépendent essentiellement de la présence ou pas de ces fichiers « mdimporters ».

Henri Dominique Rapin

 

Comment ré-indexer Spotlight et re-indexer un type de fichier en particulier ?

 

SPOTLIGHTPREFICONS 128X128

Comment re-indexer un volume complet dans Spotlight ?

Utilisez pour cela l’option  » -E  » avec la commande  » mdutil « , vous avez besoin des droits élevés, d’où la commande  » sudo  » qui nécessitera votre mot de passe.

$ sudo mdutil -E /Volumes/Mon_disque_dur

Comment re-indexer un type de fichier en particulier dans Spotlight  ?

Pour cela il vous faut le type d’Importer, c’est à dire le descripteur de fichiers, dans cet exemple j’utilise le plug-in qui permet d’ajouter les échanges d’ichat à Spotlight.

L’option  » -r  » est requise afin d’indiquer le type d’importer à prendre en compte.

$ mdimport -r /System/Library/Spotlight/Chat.mdimporter

Terminal — bash — 80×24-4.jpg

Henri Dominique Rapin