1 2 Previous Next 23 Replies Latest reply: Jun 8, 2013 3:49 PM by rccharles
rccharles Level 5 Level 5 (5,370 points)

What folders does Spotlight index?

 

I run spotlight so that I can search in the mail App.   What folders would I limit  to limi the spotligh search to my mail box? Seems like I could turn off all folders except my mail folder.  Does setting privacy on a folder prevent searching all imbeded folders?  Guess so.

 

Spotlight was well behavied on my machine until I made a comment about it on another discussion!  It decided about then to re-index my hd.

 

Robert

  • 1. Re: Taming Spotlight
    Klaus1 Level 8 Level 8 (44,505 points)

    On what Mac running what version of OS X?

  • 2. Re: Taming Spotlight
    rccharles Level 5 Level 5 (5,370 points)

    Mac OS 10.4.11 on an iMac g3 600.

     

    ( It's the Tiger forum.  Does the machine make a difference? )

     

    Robert

  • 3. Re: Taming Spotlight
    BDAqua Level 10 Level 10 (116,480 points)

    If you only use it for Mail, have you unchecked everything else in Spotlight's Search results tab?

  • 4. Re: Taming Spotlight
    rccharles Level 5 Level 5 (5,370 points)

    No. 

     

    I got the impression that there was  one index for the whole machine. The index covers multiple users, so just because one users say no for an extension, another user could say yes. I've always done the ordering of the search results on an admin id.  I'll have to try it from a standard id.

     

    Does that get the files out of search? That would be great. 

     

    I dropped several folders on the privacy tab.

     

    Robert

  • 5. Re: Taming Spotlight
    BDAqua Level 10 Level 10 (116,480 points)

    Hmmm, I think it depends which user is running, & individual to that account when running.

  • 6. Re: Taming Spotlight
    rccharles Level 5 Level 5 (5,370 points)

    I'm almost sure there is one index.  The filtering is down on the search.  Not too secure of a design, but I guess you need it to avoid multiple indexes of the same thind.

     

     

    Here is what I see:

     

     

    mac $ sudo bash
    Password:
    in /Users/mac/.bashrc       but claims to be in bash
    in /Users/mac/config/profile.bash     claims to be bash
    root # ls -lad /.Spotlight-V100/
    drw-------   9 root  admin  306B May 11 12:03 /.Spotlight-V100//
    root # cd .Spotlight-V100/
    root # pwd
    /.Spotlight-V100
    root # ls -la
    total 575080
    drw-------    9 root  admin       306B May 11 12:03 ./
    drwxrwxr-t   49 root  admin         1K Dec 31  1969 ../
    -rw-------    1 root  admin         0B May 11 13:43 .journalHistoryLog
    -rw-------    1 root  admin        44M May 11 13:44 .store.db
    -rw-------    1 root  admin       192M May 11 13:04 ContentIndex.db
    -rw-------    1 root  admin        55B Apr 27  2012 _IndexPolicy.plist
    -rw-------    1 root  admin       456B May 11 12:03 _exclusions.plist
    -rw-------    1 root  admin       378B Apr 27  2012 _rules.plist
    -rw-------    1 root  admin        44M May 11 13:44 store.db
    root # 
    

     

     

    Some info on how exclusions work:

    http://mactechnotes.blogspot.com/2005/10/spotlight-control.html

     

    I'll have to play around with this.  In the next week or so.

     

    Robert

  • 7. Re: Taming Spotlight
    BDAqua Level 10 Level 10 (116,480 points)

    Hmmm, you're right, seems only one V100 file per drive, logged into another user & set some Spotlught things to test, but after an hour it's still calculating the time, & no change in the Modification date yet.

  • 8. Re: Taming Spotlight
    rccharles Level 5 Level 5 (5,370 points)

    fyi:

     

    I'm playing around with spotlight.  I am using spotless to stop spotlight and delete the data base.  I'm changing _rules.plist. 

     

    To see if my changes work, I create a new file or send a new email. Spotlight indexes these changes immediaely.  It doesn't have to index  the entire volume. The changed files and email will show up soon.

     

    Created a new document called robertesting

     

    Picture 2.png

    Dont know why the new email didn't show up in tis list.  Mail find did show the new email.

     

    Alwasys wondered how to test what folders are being indexed. 

    Answer: place a file with a unique name on all directores.  Search for it!

     

    Robert

  • 9. Re: Taming Spotlight
    BDAqua Level 10 Level 10 (116,480 points)

    Testing in 10.5.8, changing the excluded./ncluded drives in Spotlight's Privacy Pane affects all users, but not until those users log out, once you add a drive, the other logged in users will continue indexing the drive you added.

     

    Wondering if that may  be a clue to some people all of a sudden not being able to search? Or Spotlight going on forever & related problems?

     

    The Search Results do seem to be user specific.

  • 10. Re: Taming Spotlight
    rccharles Level 5 Level 5 (5,370 points)

    the other logged in users will continue indexing the drive you added.

     

    You should not think of it as other users.  X does this in the background on spotplight processes.  See activity monitor. Set to see all processes. All the processes start with md...  The individual users communicate with the spotlight processes to tell it what  to do. I'd assume all work is down on the md processes.  Even the query. Unix runs processes.  The user starts & stops processes. When the user logs in. The user gets a process.

     

    That's my take on things.

     

    Do you need to be admin to do this?  Should be.

     

    --------------------------------------------------------------

     

    run fslogger to see what data spotlight gets on changed files.

    http://osxbook.com/software/fslogger/

     

    --------------------------------------------------------------

     

     

    Wondering if that may  be a clue to some people all of a sudden not being able to search? Or Spotlight going on forever & related problems?

     

    verify that md... processes are running.  check for crashes. It's hard to look at spotlight files.  Need terminal.  Unless you changed permission on files like it have done.

  • 11. Re: Taming Spotlight
    BDAqua Level 10 Level 10 (116,480 points)

    Well, starting with 2 users logged in Fast User switching, all drives excluded, removed boot drive in one user, went to other user, Spotlight was calculating..., went back to 1st user, excluded boot drive from Spotlight, went back to second user, Spotlight was still calculating & Boot drive didn't show as excluded... until I logged out of user #2.

     

    Forgot to check mds/find activity.

  • 12. Re: Taming Spotlight
    rccharles Level 5 Level 5 (5,370 points)

    You would think the exclude would happend immediately. I bet you could find some security hole here.  Would be ineresting if you could see a new file added to the excluded disk.

     

    I noticed in Tiger, a standard user could see personal folders excluded by an admin user . Security hole in my view.

     

    Robert

  • 13. Re: Taming Spotlight
    BDAqua Level 10 Level 10 (116,480 points)

    Modification date on the v100 file never changed, even when I let it finishing indexing! ???

  • 14. Re: Taming Spotlight
    rccharles Level 5 Level 5 (5,370 points)

    What file are we talking about?  You mean the folder?

     

     

    mac $ ls -lad  /.Spotlight-V100/
    drwxrwxrwx   9 root  admin  306B May 15 11:27 /.Spotlight-V100//
    mac $ ls -lah  /.Spotlight-V100/
    total 60520
    drwxrwxrwx    9 root  admin      306B May 15 11:27 ./
    drwxrwxr-t   48 root  admin        1K Dec 31  1969 ../
    -rw-------    1 root  admin        0B May 13 23:52 .journalHistoryLog
    -rw-------    1 root  admin        8M May 15 13:18 .store.db
    -rw-------    1 root  admin       12M May 14 13:16 ContentIndex.db
    -rw-rw----    1 root  admin      238B May 13 23:37 _IndexPolicy.plist
    -rw-rw----    1 root  admin      609B May 15 11:27 _exclusions.plist
    -rw-rw----    1 root  admin      439B May 13 19:19 _rules.plist
    -rw-------    1 root  admin        8M May 15 13:18 store.db
    
    

     

     

    I noticed my folder time/date doesn't agree with the time/date on the store.db file.

     

    I do know the folder time/date changes when time/date of a file in the folder changes.  I do not know the details.  I did add a file to the folder & the folder time/date was change.  So to when I removed the file. Maybe the time/date of the folder changes at open of a file for write and not close.

1 2 Previous Next