|
a/src/rcldb/rcldb.cpp |
|
b/src/rcldb/rcldb.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.119 2007-06-25 10:25:39 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.120 2007-07-10 09:23:28 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
|
|
... |
|
... |
515 |
return;
|
515 |
return;
|
516 |
LOGDEB(("Db::~Db: isopen %d m_iswritable %d\n", m_ndb->m_isopen,
|
516 |
LOGDEB(("Db::~Db: isopen %d m_iswritable %d\n", m_ndb->m_isopen,
|
517 |
m_ndb->m_iswritable));
|
517 |
m_ndb->m_iswritable));
|
518 |
i_close(true);
|
518 |
i_close(true);
|
519 |
}
|
519 |
}
|
|
|
520 |
|
|
|
521 |
list<string> Db::getStemmerNames()
|
|
|
522 |
{
|
|
|
523 |
list<string> res;
|
|
|
524 |
stringToStrings(Xapian::Stem::get_available_languages(), res);
|
|
|
525 |
return res;
|
|
|
526 |
}
|
|
|
527 |
|
520 |
|
528 |
|
521 |
bool Db::open(const string& dir, const string &stops, OpenMode mode, int qops)
|
529 |
bool Db::open(const string& dir, const string &stops, OpenMode mode, int qops)
|
522 |
{
|
530 |
{
|
523 |
bool keep_updated = (qops & QO_KEEP_UPDATED) != 0;
|
531 |
bool keep_updated = (qops & QO_KEEP_UPDATED) != 0;
|
524 |
qops &= ~QO_KEEP_UPDATED;
|
532 |
qops &= ~QO_KEEP_UPDATED;
|