--- a/searcher/searchserver/src/ccpixidxdb.cpp Wed Jun 23 19:26:19 2010 +0300
+++ b/searcher/searchserver/src/ccpixidxdb.cpp Tue Jul 06 15:30:04 2010 +0300
@@ -143,6 +143,9 @@
void CCPixIdxDb::InitializeL()
{
+
+ const char* KCPixResourceDirectory = "z:\\resource\\cpix"; // FIXME
+
#ifdef CPIX_LOGGING_ENABLED
_LIT(KCPixLogDirectory, "c:\\logs\\CPix\\OpenC\\");
const char* CPIX_LOG_FILE = "c:\\logs\\CPix\\OpenC\\libcpix";
@@ -186,6 +189,11 @@
SearchServerHelper::CheckCpixErrorL(initParams,
KErrCPixInitializationFailed);
+ cpix_InitParams_setResourceDir( initParams,
+ KCPixResourceDirectory );
+ SearchServerHelper::CheckCpixErrorL(initParams,
+ KErrCPixInitializationFailed);
+
cpix_InitParams_setMaxIdleSec(initParams,
IDXDB_MAXIDLE_SEC);
SearchServerHelper::CheckCpixErrorL(initParams,
@@ -478,6 +486,7 @@
if (!doc)
{
SearchServerHelper::LogErrorL(*result.err_);
+ cpix_ClearError(doc);
User::Leave(KErrCannotCreateDocument);
}
// document created, push to cleanup stack.