Re: More Spotlight questions
Re: More Spotlight questions
- Subject: Re: More Spotlight questions
- From: Scott Anguish <email@hidden>
- Date: Sun, 16 Apr 2006 01:55:08 -0400
On Apr 15, 2006, at 9:32 PM, Kenny Leung wrote:
Hi All.
All of the Spotlight documentation talks about creating Metadata to
be indexed, but there is nothing about content indexing. Is there
any documentation available about content indexing?
Spotlight really doesn't do content indexing exactly. This is a bit
of confusion caused by some external articles someplace (or so I've
assumed from the feedback that says as much).
You can populate the textcontent metadata attribute with a string
containing a text representation of your data content... however
there are some limitations
- there is a limited size that is supported.. anything beyond that
is truncated (the exact size is subject to change, and isn't
documented - I think it's 128K or 256K, but whatever it is, it can
change)
- a search can be performed on values in that attribute, but you are
unable to actually retrieve the contents of that specific attribute
(unlike almost all the other attributes)
This is discussed in the latest Spotlight Importer Programming
Guide. the last couple of paragraphs in the first section of
"Assigning Values to Metadata Attributes" (<http://
developer.apple.com/documentation/Carbon/Conceptual/MDImporters/
Concepts/AssigningDataToAttrs.html>)
The text content attribute has always been documented in the
Spotlight Metadata Attributes Reference (which should be linked from
that section, but it looks like the link is broken, I'll fix that)
<http://developer.apple.com/documentation/Carbon/Reference/
MetadataAttributesRef/index.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden