SearchKit loading question
SearchKit loading question
- Subject: SearchKit loading question
- From: Jonathan Wight <email@hidden>
- Date: Thu, 6 Nov 2003 00:34:22 -0600
This is a SearchKit question but as there isn't a SearchKit mailing
list and i'm incorporating the code into a Cocoa app this list will
have to do.
I've got a SearchKit index that I'm adding search documents to and
searching successfully. Now I'm trying to save the index when I save
the application document.
I create/load the index with SKIndexOpenWithMutableData and
SKIndexCreateWithMutableData because I need to store the index inside
my document file. So just before I save the index data I SKFlush the
index. I can check the file and the index is saved (I have to assume
successfully).
When it's time to load the document I load the data and call,
SKIndexOpenWithMutableData.
So far so good, no SK* functions fail on me. But when I try to query
the index I get zero responses back. This is using an index that
previously was working ok before I tried to save/reload the index.
If I call SKIndexGetDocumentCount() on my index after I load the data I
get told I have 0 documents. Is there anything else I should do when
saving/loading the index data?
Jon.
A quick moan, it's good to have AIAT/V-Twin back again - but the API
really needs work. Returning true/false on success/failure isn't good
enough - there needs to be a an API for getting an error code/string.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.