sawney beane <> wrote:
> matt neuburg wrote:
> > sawney beane <> wrote:
> >
> >> In the past I've *thought* Spotlight failed to find some documents when
> >> I searched by content. Yesterday I used Spotlight to search a certain
> >> folder by content and found that the folder's content had apparently not
> >> been included in Spotlight's index.
> >>
> >> How can I make Spotlight index the content of a folder?
> >
> > man mdimport
> >
> > m.
> >
> Thanks. Should I type that into the console?
The Terminal. It will teach you about forcing a folder to be indexed.
> Why wouldn't that folder already be indexed?
Some areas are protected from indexing, by default. You can protect
others from indexing by your settings in System Preferences. And
sometimes things do just break down.
By the way, also "man mdls". You can use "mdls" to find out what
Spotlight knows about a given file.
> I created that folder a few weeks ago as a copy of a folder of ducuments
> in MS Word 5. In this folder I opened and saved each document as a
> ClarisWorks 5 document so I could open it with AppleWorks 6. Spotlight
> has indexed other ClarisWorks 5 documents.
>
> In that connections, Spotlights shows four mdimporters:
> AppleWorks.mdimporter
> Keynote.mdimporter
> Microsoft Office.mdimporter
> Pages.mdimporter
Yes. And don't worry too much about this, since there can be other
importers that you don't see in that folder.
What I'd do in your case is separate two issues: (1) are the files being
seen by Spotlight at all, and (2) is their content being indexed. To
find out the former, do a name search for the name of one of the files
in that folder. If Spotlight doesn't know about the file at all, that's
why the content isn't being indexed. On the other hand, if it does know
about the file but the content still isn't being indexed, that suggests
that Spotlight doesn't know how to read that type of file (i.e. it
hasn't an importer).
You can use my free NotLight program as a way of controlling easily
precisely what you ask Spotlight. For example, with NotLight two issues
distinguished above are easily kept distinct, since you are in clear
charge of what kind of search you're doing. m.
--
matt neuburg, phd =
,
http://www.tidbits.com/matt/
Tiger -
http://www.takecontrolbooks.com/tiger-customizing.html
AppleScript -
http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart.
http://www.tidbits.com