• 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, Content Indexing, and SearchKit integration questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight, Content Indexing, and SearchKit integration questions


  • Subject: Re: Spotlight, Content Indexing, and SearchKit integration questions
  • From: "Dr. Smoke" <email@hidden>
  • Date: Thu, 2 Jun 2005 12:25:02 -0500

Hi, Vince.  Thanks for your response!

On 2005.06.02, at 10:49 , Vince DeMarco wrote:


On Jun 2, 2005, at 7:12 AM, Dr. Smoke wrote:


Thanks.  I keep hoping someone from Apple's Spotlight team will respond to this thread and clear-up the remaining questions:

1. Exactly how is Spotlight using SearchKit, both for content indexing and in search.



Spotlight is using SearchKit but only for content indexing. Beyond that does it really matter ???

I'd like to know the details.  I think others would as well.  Could be helpful in troubleshooting.  Could also offer some insights useful to developers.  Obviously, I'm not looking for "trade secrets" here, but rather a somewhat more detailed understanding of the processes.

I can also provide you with examples of where the indices get out of sync with the file system, and where rebuilding the indices twice in a row on a data-only, non-boot volume, returns ContentIndex.db files with two different sizes -- a 1MB difference -- from each build despite no underlying changes in the files being indexed.  If you want to contact me offline for details, I'll be happy to provide them.  

2. How kDMItemContent is populated if one has files whose UTIs match the types supported by the existing mdimporter objects.

kMDItemContent what key is this?? i assume you mean kMDItemContentType, basically Launch Services is asked for the UTI of the file in question.

Forgive my typo. I meant kMDItemTextContent.  

Having now had a chance to read the recently-updated "Search Kit Reference" I think I may have a better idea of what is happening under the covers.

However, it might help to have some examples in the "Spotlight Importer Programming Guide" showing how one populates kMDItemTextContent in GetMetadataForFile.  

I presume if kMDItemTextContent is not set for a document in a custom mdimporter, its text content is not added to ContentIndex.db.  True?

Cases where some examples demonstrating the setting of kMDItemTextContent in a custom mdimporter might be helpful:

a. The Spotlight Importers can be employed for text extraction.  For example, let's say one had an HTML document that contained strings within comments that I wanted to regard as custom metadata.  To set these as custom metadata, I'd need to use a custom mdimporter.  But Spotlight's bundled importers can also extract the text and other metadata.

b. One has to provide their own text extraction routine, i.e. the Spotlight importers do not match the type of document from which text content is to be extracted.

The current example shows only two standard metadata items and a custom metadata item, but does not address content, i.e. kMDItemTextContent.  

;-) Doc
 _______________________________________________
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

  • Follow-Ups:
    • Re: Spotlight, Content Indexing, and SearchKit integration questions
      • From: Corbin Dunn <email@hidden>
    • Re: Spotlight, Content Indexing, and SearchKit integration questions
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Spotlight, Content Indexing, and SearchKit integration questions (From: Mark T <email@hidden>)
 >Re: Spotlight, Content Indexing, and SearchKit integration questions (From: Mark T <email@hidden>)
 >Re: Spotlight, Content Indexing, and SearchKit integration questions (From: "Dr. Smoke" <email@hidden>)
 >Re: Spotlight, Content Indexing, and SearchKit integration questions (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: Animated gif on 10.4..x
  • Next by Date: Changing the size of the content view in side of a ScrollView
  • Previous by thread: Re: Spotlight, Content Indexing, and SearchKit integration questions
  • Next by thread: Re: Spotlight, Content Indexing, and SearchKit integration questions
  • Index(es):
    • Date
    • Thread