merged from cdsens branch
This commit is contained in:
@@ -14,9 +14,7 @@
|
||||
* Free Software Foundation, Inc.,
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "autoconfig.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
@@ -258,10 +258,11 @@ bool ConfIndexer::createStemmingDatabases()
|
||||
|
||||
bool ConfIndexer::createStemDb(const string &lang)
|
||||
{
|
||||
if (!m_db.open(Rcl::Db::DbUpd)) {
|
||||
if (!m_db.open(Rcl::Db::DbUpd))
|
||||
return false;
|
||||
}
|
||||
return m_db.createStemDbs(vector<string>(1, lang));
|
||||
vector<string> langs;
|
||||
stringToStrings(lang, langs);
|
||||
return m_db.createStemDbs(langs);
|
||||
}
|
||||
|
||||
// The language for the aspell dictionary is handled internally by the aspell
|
||||
|
||||
Reference in New Issue
Block a user