Spotlight is not indexing all of a large file

Discussion in 'macOS' started by stevemcmillen, Oct 2, 2012.

  1. stevemcmillen macrumors newbie

    Dec 29, 2009
    I have a 2 GB XML file. I'd like to be able to use spotlight to quickly find if a string exists in the file by searching in that dir for the string. The file is so large that typical search tools take too long.

    Search (for a string) into the file seems to work fine up to a certain point i the file but after that point, strings that I use spotlight to search for (that definitely exist in the file) are not returned by spotlight.

    What I've found is that spotlight seems to be indexing only the first portion of large files. I have a full xml file followed by a number of incremental files. When I search for one of the IDs in the incremental file near the front of the full xml file spotlight gets a hit on the full and incremental files. But if the string I'm searching for is past certain point in the full xml file spotlight no longer finds the string that definitely exists within the full xml file. It only returns the incremental xml file hit. But if I search using grep, i do get a hit (after waiting a while).

    I've googled like a madman on if spotlight imposes some limit on source files and if there is a way to raise that limit. Anyone have any ideas?

    Thanks, Steve
  2. 3DWizard macrumors newbie

    Oct 15, 2012
    seems to be some truth to it

    Unfortunately I cannot help you on that issue. As a matter of fact I am interested in this topic, too. I am just posting to let you know that I also think that there is a spotlight indexing limit.
    I had issues with a software called papers from mekentosj and their support claims that apple has restricted spotlight indexing for large files (in my case pdf files).
    If anyone knows a solution, please let us know.
  3. DoFoT9 macrumors P6


    Jun 11, 2007
  4. 3DWizard macrumors newbie

    Oct 15, 2012
    Unfortunately reindexing does not solve the issue. This seems to be a problem with spotlight and I am pretty sure this can be reproduced.

Share This Page