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: Pierre Bernard <email@hidden>
- Date: Tue, 10 May 2005 18:10:12 +0200
That's about the same situation I have. I have one CoreData SQLite
database representing many items. For each item there is a data file
in the Application Support directory. The actual meta-data for my
files is in my SQLite database.
I need to solve two problems:
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.
I can solve 1. by making CoreData see the attachement files in the
Application Support directory.
I can and did solve 2. by piggybacking meta-data onto those data files.
The solution I am now going for is to:
Keep the attachement files just as they are with no meta data
piggybacked onto them.
Solve 1. by creating files in Caches/Metadata just as Address Book
and iCal do
Solve 2. by including a copy of the actual meta data in theses files
I can at wish rebuild the meta data files from my SQLite data store.
The only trouble is seeing that/if it went out of sync.
Pierre
On May 10, 2005, at 5:38 PM, Creed Erickson wrote:
On May 10, 2005, at 8:08 AM, Pierre Bernard wrote:
Actually, this is how Apple does things for Address Book and iCal.
Erm, I don't think it works as you are presenting it. AB data and
metadata are all kept in one file, ~/Library/Application Support/
AddressBook/AddressBook.data. The stuff in ~/Library/Caches is just
pre-digested stuff pulled from the data file. That cache can be
rebuilt from the data file.
_______________________________________________
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