• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Spotlight index all data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight index all data


  • Subject: Re: Spotlight index all data
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 2 Oct 2009 01:57:37 -0400


On Sep 28, 2009, at 12:48 PM, David Melgar wrote:

The Spotlight seem to talk exclusively about talk about searching metadata. But what about the data itself? When I use Spotlight, it finds references within the content of documents not just their metadata.

When writing an importer, what metadata field is used to return the document content or how does Spotlight search and/or index it? Is it kMDItemTextContent? Is there a size limit on how large the string value can or should be?

In my case I have a potentially large relational database of remote filenames. I'd like the user to be able to search for the filenames contained within the database using Spotlight. It is reasonable and proper for me to generate a giant string of all filenames as a value for kMDItemTextContent? Is there some other way I should go about doing this?

Thanks


Old message.. but

kMDItemTextContent is search only. You can’t read the data from it. This is clearly stated in the Spotlight Metadata Reference Docuentation

Also, you can’t assume Spotlight will search all directories. users can prohibit this.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Meaning of explicit transactions
  • Next by Date: adding a new window and controller to a Document project on startup...
  • Previous by thread: Re: Meaning of explicit transactions
  • Next by thread: adding a new window and controller to a Document project on startup...
  • Index(es):
    • Date
    • Thread