Disable spotlight on certain files based on their extension

Discussion in 'OS X Yosemite (10.10)' started by foice, Aug 16, 2015.

  1. foice macrumors member

    Joined:
    Dec 23, 2008
    #1
    Hello, I would like to have spotlight to ignore all file with .dat extension. Do you know of any way to do this?
     
  2. foice thread starter macrumors member

    Joined:
    Dec 23, 2008
    #2
    nobody?
     
  3. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #3
  4. foice thread starter macrumors member

    Joined:
    Dec 23, 2008
    #4
  5. chabig macrumors 68040

    Joined:
    Sep 6, 2002
    #5
    What purpose would this serve? As long as you don't put "dat" in the search box, nothing will show up in your results.
     
  6. foice thread starter macrumors member

    Joined:
    Dec 23, 2008
    #6
    The problem is not search results, but `mdworker` :) that starts indexing files, in my case many Gb of them, and they do not contain stuff that I want to search in, let alone waste CPU on indexing them.

    I hope now it is more clear ...
     
  7. robgendreau macrumors 68040

    Joined:
    Jul 13, 2008
    #7
    Part of the problem is that the Mac OS isn't very savvy to .dat files, and they can be of different types. You'll find that extension in Application Support for various applications, and in mail messages, etc. It would be tough to get Spotlight to ignore them since they probably get indexed as content type "public.data" so eliminating that, if you could, would probably exclude other useful files. Best to just construct a search so that they are excluded, or filtered/sorted to be out of the way.
     
  8. foice thread starter macrumors member

    Joined:
    Dec 23, 2008
    #8
    That is an interesting comment indeed. I see the issue. However let me say that my question is more general, because sometimes mdworker start to index other big data files, that are not .dat, but contain some text based "big data" I work on. This can eat one cpu or more ...

    So I am afraid I would still benefit a lot of a way to exclude certain file extensions from being indexed.
     
  9. chabig macrumors 68040

    Joined:
    Sep 6, 2002
    #9
    I would assume that your .dat files mostly live inside a particular folder. Just drag that folder into the list of items not to index and you should be fine, right?
     
  10. foice thread starter macrumors member

    Joined:
    Dec 23, 2008
    #10
    yes! but no ... :)

    files tend to be in certain folders, true, but every time you start a new project then you populate several new folders with such files ... and you have to add them all to the list of excluded folder. then you might as well install linux on your mac and, voila, your done :p

    well, don't take me wrong, I see that you all are trying to help, but I think the only truth here is that spotlight is missing a feature.
     
  11. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #11
    Put all the new project folders within an enclosing folder, and always start new projects inside that folder.
    Putting a folder on the exclusion list will exclude all the folders inside that folder.
    It's a PITA workaround, but it is usually workable.
     

Share This Page