Switch to unified view

a/src/index/indexer.cpp b/src/index/indexer.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.41 2006-10-24 14:28:38 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.42 2006-10-25 10:52:02 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
131
    }
131
    }
132
    return true;
132
    return true;
133
}
133
}
134
134
135
// Create stemming databases. We also remove those which are not
135
// Create stemming databases. We also remove those which are not
136
// configured.
136
// configured. 
137
bool DbIndexer::createStemmingDatabases()
137
bool DbIndexer::createStemmingDatabases()
138
{
138
{
139
    string slangs;
139
    string slangs;
140
    if (m_config->getConfParam("indexstemminglanguages", slangs)) {
140
    if (m_config->getConfParam("indexstemminglanguages", slangs)) {
141
    list<string> langs;
141
    list<string> langs;
...
...
198
    }
198
    }
199
    LOGDEB(("DbIndexer::createAspellDict: creating dictionary\n"));
199
    LOGDEB(("DbIndexer::createAspellDict: creating dictionary\n"));
200
    if (!aspell.buildDict(m_db, reason)) {
200
    if (!aspell.buildDict(m_db, reason)) {
201
    LOGERR(("DbIndexer::createAspellDict: aspell buildDict failed: %s\n", 
201
    LOGERR(("DbIndexer::createAspellDict: aspell buildDict failed: %s\n", 
202
        reason.c_str()));
202
        reason.c_str()));
203
  return false;
204
    }
205
    // The close would be done in our destructor, but we want status here
206
    if (!m_db.close()) {
207
  LOGERR(("DbIndexer::indexfiles: error closing database in %s\n", 
208
      m_dbdir.c_str()));
203
    return false;
209
    return false;
204
    }
210
    }
205
#endif
211
#endif
206
    return true;
212
    return true;
207
}
213
}