FYI: Spotlight doesn't index .git directories

This is to save you the couple hours I just wasted:
Apparently Spotlight (OS X 10.10.2 as of now) doesn't index the contents of folders ending with ".git". Unlike the equivalent ".noindex" extension, this appears to be completely undocumented; a cute little surprise from Apple devs to non-Apple devs.
This is probably to prevent ".git" directories inside git repos from being indexed and cluttering up Spotlight with gazillions of useless (from a Spotlight perspective) files. Matching ".git" as a suffix instead of an exact-match is a problem however, since it can easily match repo names if a user chooses to name his/her directories "myproject.git".
The one upside of this is that I discovered and fixed some disk corruption during my investigation of disk problems, POSIX permissions, ACLs, Spotlight indices, etc. #thinsilverlining

Edit: I just realized that this went into the 10.6 group instead of the 10.10 group, and there doesn't seem to be a way to delete or move it. Whoops. You Snow Leopard users can rejoice that you don't have this problem yet.

Similar Messages

  • Forcing Spotlight to index dot directories (& contents thereof)

    I commonly need to find files hidden in dot directories of my computer. I am given to understand that Spotlight does not index hidden directories by default. I'd like to know if there is a way to force indexing of the +contents of hidden directories.+ According to an old doc I found online, the mdimport -f option used to this, but -f is obsoleted in Leopard. Is there another way?
    If not, why? It's inconvenient enough to have to manually do it. It's atrocious if there's no way at all.

    Actually you can search things that are simply hidden, such as /private. Just go there using the "Go To Folder" item in the Finder's Go menu, or use the open command in Terminal, or make aliases to all the ones you want to quickly open and double click the alias (this is what I have done). So open /private, and hit Command-F, then click "private" in the Search window toolbar, and set your seach. For instance, if I do that and select Name:contains:make, I instantly get two files listed
    /private/var/yp/Makefile.main
    /private/var/yp/Makefile.yp
    The problem is that searching for content in pretty much any of those places is basically fruitless, because all, or nearly all, the files are things that do not have mdimporters (and why a perfectly ordinary plain text file isn't handled, just because it doesn't have a .txt extension, when Finder itself can identify the file as plain text, well, I'm at a loss to understand that). Whether the files would be indexed at to content if there were an mdimporter for them, I just don't know.
    You can do the same sort of thing with dot folders: open it by "Go to" or with an open command, then hit Command-F to bring up the search window. But again you will be able to search by name, even date, but the content searches won't work. In this case I happen to know that the items are not actually handled by their mdimporters, even when there is an mdimporter. The only information available to spotlight is the basic file system information, name, extension, size and dates.
    Francine
    Francine
    Schwieder

  • Spotlight doesn't search in word documents

    Hello,
    I have a Question regarding Spotlight: If I look for any phrase which is in word documents, Spotlight doesn't find it. (I got some documents from a friend, each about 100 pages). When I use OpenOffice and export the documents to pdf: no problem, Spotlight works perfectly.
    Is there a way to force Spotlight to index this folder? I thought, Spotlight would index word documents automatically...

    I found out the reason:
    The *.doc documents were rtf-documents with a doc at the end. Spotlight doesn't index rtf as it seems.
    Saving them as word solved the problem.

  • Spotlight doesn'tsee content in Word files

    Hi,
    I'm finding that spotlight on my MacBook Pro running 10.7.4 does not see the content of Word files.  Is this a known issue or is there something anyone can suggest as a posible fix?
    Many thanks,

    I found out the reason:
    The *.doc documents were rtf-documents with a doc at the end. Spotlight doesn't index rtf as it seems.
    Saving them as word solved the problem.

  • Time capsule not backing up - spotlight doesn't stop indexing!

    I have asked Spotlight not to index the backup drive however it ignores this and continues to try and do so. However it continues to estimate index time without providing a time, and hence the backup never proceeds.
    Rebooting hasn't helped, and I'm even pluggintg the MBP into the TC via ethernet.
    Any ideas please?

    I'm having the same problem. Added the time capsule to the privacy list but this doesn't appear to prevent indexing. Basically every time time machine backup kicks off it indexes the time capsule, which is of no value to me. I believe this is a recent issue, but I can't say for certain what changed. Recent software update? Anyway, did you ever get to the bottom of it? My backups do complete, however it slows down the process and of course i can't use spotlight while its "estimating/completing" index of time capsule.

  • What SPOTLIGHT does and doesn't index?

    This information must be somewhere, but I haven't been able to find it . . .
    ~ What exactly SPOTLIGHT does and doesn't index? ~
    Thanks for any assistance.

    Try this one. Create and delete iPhone, iPad, and iPod touch backups in iTunes - Apple Support

  • Leopard's Spotlight doesn't search...

    Hi there!
    I've got a problem with Leopard Server...
    It's the first time that I run a server version.
    Everything works great! But... Spotlight...
    Spotlight doesn't search anything on my internal HD. On my external HD (connected with FireWire) it works!
    I already deleted the .Spotlight Folder on my startup disk... But that doesn't help... I added my HD to the "privacy" Tab in Spotlight and deleted it after that... But that doesn't help, too...
    Has anybody of you an idea how to make this work?
    Thanks a lot!

    I got to Spotlight to search and index my internal harddisk again.
    I rebuilt the .Spotlight-V100 folder including the subfolder which I copied from a working (searchable external harddisk) which I initially deleted in my trial to get Spotlight working again.
    After a lot of tinkering with mdutil, Cocktail (a superb OS X system utility) and the Spotlight preference panel the overal problem for Spotlight might have been that I have got the internal and the Windows partition named starting the same name "Aristoteles" then a "blank" and the "HD" on the OS X partition and "WinXP" on the Windows partition. Obviously that got Spotlight confused because when I specifically excluded the windows partition (using the Spotlight preferences panel) and reactivated the remaining OS X partition using the "sudo mdutil -i on /Volumes/Internal" command (I renamed the OS X disk partition from "Aristoteles" to "Internal") ... bang Spotlight kicked in ... but the strange thing is that Spotlight kicked in telling me it is searching the OS X partition "Aristoteles" instead of "Internal".
    I cannot remember any technical comment (this is pure "trial and error" on my side) that Spotlight only takes the first part of a disk name. But if two partitions on the same disk start with the same name Spotlight may run in to troubles unless one is excluded from searching ... and even a later renaming of a partition doesn't help ...
    Message was edited by: OlympusUser

  • Spotlight doesn't appear when I click on it or when I use the cmd space....

    All of a sudden it stops coming up. ??????

    I'm having the same problems. Spotlight doesn't respond when I click on its icon in the menu bar, and splat-space highlights the icon but doesn't open any windows.
    If I click on a Finder window and hit splat-F I can open a finder window but it appears it stopped indexing a while ago because I don't see any new info. I've deleted the index and it's reindexing now, but no change in the Spotlight icon behavior.
    I have Now-Up-to-Date as well, and I'm running the current version, but I'm a bit nervous about deleting that startup folder without knowing what that will do. If that simply removes the icon from the menu bar I'm fine with that.
    Spotlight does occasionally work. I don't know why but it'lll suddenly kick into gear. These days, though, it's not available 95% of the time, which is a bummer as I really like it and used it a lot.

  • Spotlight isn't indexing file names (or all files?)

    Recently upgraded to a MBP Retina.  One of the really annoying things I have come across is that Spotlight doesn't seem to be indexing file names.  Even if I do a search like "name:chart" in a folder that has a file named "chart.pdf" it won't show up.
    Is there a way to force iOSX Vista SP1 (aka Mountain Lion) to actually index things?
    This is happening for files that are spread across multiple folders.  I have already run fix permissions and checked with "Get Info" that the folders/files I'm trying to search for are set to read/write by me.

    From the menu bar, select
     ▹ System Preferences ▹ Spotlight ▹ Privacy
    The list of items excluded from Spotlight indexing is shown (it may be empty.) Click the plus (“+”) icon to add an item to the list. Select your volume (under DEVICES) and add it to the list. Then remove it from the list by selecting it and clicking the minus (“-“) icon.
    Spotlight will rebuild the index. If you try to do a Spotlight search now from the magnifying-glass icon in the top right corner of the display, a pulsing dot will appear in the icon. When the dot disappears, the indexing is complete.

  • Under Yosemite Spotlight doesn´t find my files

    Under Yosemite Spotlight doesn´t find my files on the computer and connected hard drives. What can I do?

    Try re-indexing Spotlight.
    Spotlight – Re-index
    See if you can find the file using this program
    EasyFind – Spotlight Replacement

  • Spotlight doesn't find files after Time Machine re-load

    So I just got a new macbook pro and transferred everything from my old laptop onto it using Time Machine, which worked amazingly ... only weird thing now is when i search in the Finder Search bar or in Spotlight, it doesn't find any files that were on my old computer. I can find them manually, for example, I can be looking at a file called "house-info.rtf" in my Documents folder, but if i search "house" or even "house-info" it comes up with 0 results.
    Any new file (I've made or downloaded on my new machine) comes up fine in the search, it's just files from my previous computer moved over via time machine...
    any ideas?

    Hi, and welcome to the forums.
    Time Machine does not save Spotlight's index, so your drive has to be re-indexed. It may be that it just hasn't "caught up" yet. Give it some time.
    If you're pretty sure it just hasn't done it, you can usually get Spotlight to re-index by excluding your internal HD from Spotlight (System Preferences > Spotlight > Privacy) for a few moments, then removing the exclusion. That should make it start over.

  • Spotlight doesn't find html files

    I'm a web developer. I have thousands of ".html" files, such as "india.html"
    Spotlight won't find them.
    It does find "india.cfm" files so I'll assume the problem is the html extension.
    If I Show All in Finder it does them ... in a Find window section called "Developer" ... which doesn't appear in Spotlight, or is a choice in Spotlight Preferences.
    This used to work. I'm now using 10.9.5. I don't know at which update it stopped working ... I don't perform this often but when I do it's critical.
    I've repaired permissions and reindexed the drive (twice, by adding and removing the drive from Spotlight index preferences).
    Thanks.

    A test...
    Made a plain text file, saved to desktop, apple.html. Spotlight doesn't find it. Duplicated it. Change the name to apple.txt. Spotlight immediately finds it.
    Spotlight is having a problem with html.
    Checked the Spotlight RichText.mdimporter and it has:
    <array>
    <dict>
    <key>CFBundleTypeRole</key>
    <string>MDImporter</string>
    <key>LSItemContentTypes</key>
    <array>
    <string>public.rtf</string>
    <string>public.html</string>
    <string>public.xml</string>
    <string>public.plain-text</string>
    <string>com.apple.traditional-mac-plain-text</string>
    <string>com.apple.rtfd</string>
    <string>com.apple.webarchive</string>
    <string>org.oasis-open.opendocument.text</string>
    <string>org.openxmlformats.wordprocessingml.document</string>
    </array>
    </dict>
    </array>
    ... so that's in there...

  • Spotlight doesn't find all files.

    Hi guys,
    i just installed Snow leopard on my old iMac that was running tiger before. With tiger i never had troubles like this and the same files im looking for now were always found. However spotlight doesn't seem to find them now. They are located in HD/library/.... anything in there cant be found and i didnt enable privacy for it.
    After i moved one application out of there and dragged it on the desktop it was instantly found. Doesn't seem like a big deal since i know where the app is and i have it in the dock anyways, the problem just is that i am looking for other files that im not sure anymore if they are on the computer and if spotlight just doesnt find them it would take me a lot of time searching for them manually.
    My question is, besides if you have a solution to fix this, if its due to snow leopard. Does it not look in the library anymore?
    Thanks in advance folks,
    P.S. i already re-indexed.

    Spotlight does not search system folders by default.  See,
    Get Spotlight to search system files (and more)
    Enter the search term in the Finder window's search field.
    Click the [+] button in the search bar to add a search option.
    In the first drop down menu choose Other.
    Choose “System Files” from the list that pops up (and check the box to place in drop down menu to avoid this step later,) click on the OK button.
    Now back in the Finder choose Include from the second drop down menu.

  • Spotlight won't index iPhoto 7 files

    It seems spotlight won't index the iPhoto Library for iPhoto 7 (iLife '08) automatically.
    I manually issued the following command in Terminal and it worked. But will it work automatically when I add more pics?
    mdimport -f "/Users/ibrian/Pictures/iPhoto Library"

    Step one to ascertain whether the .Spotlight-V100 folder exists.
    $ ls -al / | grep .Spotlight-V100
    If so, then remove it, and restart:
    $ sudo rm -R /.Spotlight-V100
    That should restart indexing. If not, then try the mdutil commands again.
    If that doesn't do the trick, create a new admin user account, log into it, and try there.

  • Another Spotlight Doesn't Work Thread

    OK
    I've been told I should start a thread with my specific Spotlight problem.
    So... the story so far.
    Spotlight is broken on my Mac Book Pro. I don't remember exactly when it started but I get junk in search results, for example:
    http://www.btinternet.com/~marsdy/Picture_2.png
    http://www.btinternet.com/~marsdy/Picture_4.png
    At first this would happen after a few successful searches. Restarting would solve the issue usually. Then I added the Macintosh HD to the Privacy Pane of the Spotlight prefs pane. This was in line with recommendations for using Pro Tools and following Apple's guidance on stopping Spotlight from indexing a disk, volume or folder.
    I subsequently uninstalled Pro Tools and removed the Mac HD from the Privacy pane. Since that point Spotlight hasn't worked at all.
    I've checked the disk and repaired permissions. The Mac is working perfectly otherwise. I've tried to reset the Index with Spotless, Onyx and Terminal. Each time Spotlight rebuilds the index it only takes a few seconds! I note from Spotless that the index is only 4.4mb in size after rebuilding.
    Just to reiterate, Spotlight wasn't working correctly BEFORE I installed Pro Tools. I have no third party add-ons, hacks or whatever installed.
    I don't want to search the contents of some obscure HTML file, I just want to search for a file on my Mac.

    The microphone has to be selectet as prefered input device. What you hear is selected by default. Use the vollume-tab from windows.
    It makes no sense to disable the onboard to set your soundcard as the primary card. All this is configurable in windows audio configuration. You can have as much audio-cards as you want. Sometimes i had three cards: AWE32 for MIDI-Playback, Onboard for Mic-Input, Audigy for audio-playback and AWE32-MIDI Output per SPDIF. Even today im using the Onboard for MIC-Input because in Vista there are problems if youre playin some games with alchemy because teamspeak looses connection to the microphone-input from my X-FI.

Maybe you are looking for