Re: Add metadata to my files for Spotlight
Re: Add metadata to my files for Spotlight
- Subject: Re: Add metadata to my files for Spotlight
- From: Scott Anguish <email@hidden>
- Date: Thu, 12 May 2005 06:42:52 -0400
No, it doesn't.
Performance wise it's probably better to write search files out to
some Library location that can be indexed, and the load metadata
loaded only from those files directly.
Mail does this. I think Safari RSS does as well.
On May 12, 2005, at 4:36 AM, Pierre Bernard wrote:
What the doc is about is attaching metadata to the CoreData file as
one unit. This allows for the file to be indexable.
In my setup the CoreData file stores metadata for many units. I
don't want the file to be indexed. I rather want each unit to be
indexed. The proposed method does not apply.
Pierre
On May 12, 2005, at 6:49 AM, Chris Hanson wrote:
On May 10, 2005, at 9:10 AM, Pierre Bernard wrote:
1. Get Spotlight to see individual items rather than one big
SQLite file
2. Get the meta-data indexed at reasonable cost. The docs tell me
to refrain from instantiating a CoreData stack in the importer.
You don't need to instantiate a full Core Data stack just to read
metadata. You can use +[NSPersistentStoreCoordinator
metadataForPersistentStoreWithURL:error:] to get the metadata of
the persistent store at a given URL. You don't even need to
reference a managed object model or instantiate a persistent store
coordinator since this is a class method.
-- Chris
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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