fixed stemming, was completely broken in 1.13

This commit is contained in:
Jean-Francois Dockes
2010-04-12 19:11:23 +02:00
parent f84c7685b0
commit fb9f128e26
2 changed files with 108 additions and 81 deletions
+6
View File
@@ -195,6 +195,10 @@ bool ConfIndexer::createStemmingDatabases()
{
string slangs;
if (m_config->getConfParam("indexstemminglanguages", slangs)) {
if (!m_db.open(Rcl::Db::DbRO)) {
LOGERR(("ConfIndexer::createStemmingDb: could not open db\n"))
return false;
}
list<string> langs;
stringToStrings(slangs, langs);
@@ -215,6 +219,7 @@ bool ConfIndexer::createStemmingDatabases()
m_db.createStemDb(*it);
}
}
m_db.close();
return true;
}
@@ -245,6 +250,7 @@ bool ConfIndexer::createAspellDict()
return true;
if (!m_db.open(Rcl::Db::DbRO)) {
LOGERR(("ConfIndexer::createAspellDict: could not open db\n"));
return false;
}