• 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: SearchKit and Spotlight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SearchKit and Spotlight


  • Subject: Re: SearchKit and Spotlight
  • From: Anton Leuski <email@hidden>
  • Date: Tue, 3 May 2005 10:19:07 -0700

On May 3, 2005, at 8:45 AM, Vince DeMarco wrote:


On May 2, 2005, at 6:06 PM, Anton Leuski wrote:


Firstly, I'd like to apologize for posting to multiple lists, but I'm not sure where to ask this question. If you know of a better forum for this topic, please direct me there.

Now that Tiger is out of the bag (pun intended), I'm looking at any info about integration of Spotlight and SearchKit. Specifically, I'm looking at two questions:

1. I know Spotlight uses SearchKit for content-based indexing. Is there a way to access the SearchKit index created by Spotlight using SearchKit APIs? A quick hack of doing

SKIndexOpenWithURL((CFURLRef)[NSURL URLWithString:@"file://.Spotlight-V100/ContentIndex.db"], nil, (Boolean)0);

did not work...

2. Does anybody know whether the content index created by Spotlight is kSKIndexInverted, kSKIndexVector, or kSKIndexInvertedVector? I'd bet it's the first choice, but I'm hoping for the third one...

Thank you in advance for answering, and please cc your answer to my email.



YOu can't access the Spotlight SearchKit index, but the question is why do you want to?? just use the Spotlight API to do the query and limit the query to just a text content based query


kMDItemTextContent = "blah"cwd

Vince



I'm not looking to do search, I'm looking to do clustering, -- arranging the document into groups of similar documents, -- based on the content. For this I need access to the list of terms from the documents and compare those lists. SearchKit API would give me this information if I can use it with the Spotlight index. An alternative is to create my own index which is rather wasteful.


For example, think of it as querying using several documents as examples. (FindByContent had something like this) It would allow for much more intelligent smart folders. You would have Mail.app automatically organize inbox into multiple folders by providing examples of things instead of trying to create elaborate Spotlight queries.

If you are saying that I cannot access the Spotlight index, can you tell me whether Spotlight and SearchKit have different storage formats and Spotlight has private APIs, or is this an administrative issue, so others would not be able to go and mess with such a crucial part of the system?

-- Anton

P.S. Apple, remember the "piles" metaphor? ;-) _______________________________________________
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: SearchKit and Spotlight
      • From: Georg Tuparev <email@hidden>
    • Re: SearchKit and Spotlight
      • From: Vince DeMarco <email@hidden>
References: 
 >SearchKit and Spotlight (From: Anton Leuski <email@hidden>)
 >Re: SearchKit and Spotlight (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Core Data design question
  • Next by Date: Re: SearchKit and Spotlight
  • Previous by thread: Re: SearchKit and Spotlight
  • Next by thread: Re: SearchKit and Spotlight
  • Index(es):
    • Date
    • Thread