|
a/src/rcldb/rcldb.cpp |
|
b/src/rcldb/rcldb.cpp |
|
... |
|
... |
555 |
LOGDEB2(("makeAbtract: done in %d mS\n", chron.millis()));
|
555 |
LOGDEB2(("makeAbtract: done in %d mS\n", chron.millis()));
|
556 |
return vabs;
|
556 |
return vabs;
|
557 |
}
|
557 |
}
|
558 |
|
558 |
|
559 |
/* Rcl::Db methods ///////////////////////////////// */
|
559 |
/* Rcl::Db methods ///////////////////////////////// */
|
|
|
560 |
|
|
|
561 |
bool Db::o_inPlaceReset;
|
560 |
|
562 |
|
561 |
Db::Db(RclConfig *cfp)
|
563 |
Db::Db(RclConfig *cfp)
|
562 |
: m_ndb(0), m_config(cfp), m_idxAbsTruncLen(250), m_synthAbsLen(250),
|
564 |
: m_ndb(0), m_config(cfp), m_idxAbsTruncLen(250), m_synthAbsLen(250),
|
563 |
m_synthAbsWordCtxLen(4), m_flushMb(-1),
|
565 |
m_synthAbsWordCtxLen(4), m_flushMb(-1),
|
564 |
m_curtxtsz(0), m_flushtxtsz(0), m_occtxtsz(0), m_occFirstCheck(1),
|
566 |
m_curtxtsz(0), m_flushtxtsz(0), m_occtxtsz(0), m_occFirstCheck(1),
|
|
... |
|
... |
1401 |
// Test if doc given by udi has changed since last indexed (test sigs)
|
1403 |
// Test if doc given by udi has changed since last indexed (test sigs)
|
1402 |
bool Db::needUpdate(const string &udi, const string& sig)
|
1404 |
bool Db::needUpdate(const string &udi, const string& sig)
|
1403 |
{
|
1405 |
{
|
1404 |
if (m_ndb == 0)
|
1406 |
if (m_ndb == 0)
|
1405 |
return false;
|
1407 |
return false;
|
|
|
1408 |
|
|
|
1409 |
// If we are doing an in place reset, no need to test. Note that there is
|
|
|
1410 |
// no need to update the existence map either, it will be done while
|
|
|
1411 |
// indexing
|
|
|
1412 |
if (o_inPlaceReset)
|
|
|
1413 |
return true;
|
1406 |
|
1414 |
|
1407 |
string uniterm = make_uniterm(udi);
|
1415 |
string uniterm = make_uniterm(udi);
|
1408 |
string ermsg;
|
1416 |
string ermsg;
|
1409 |
|
1417 |
|
1410 |
// We look up the document indexed by the uniterm. This is either
|
1418 |
// We look up the document indexed by the uniterm. This is either
|