|
a/src/rcldb/rclquery.cpp |
|
b/src/rcldb/rclquery.cpp |
|
... |
|
... |
452 |
pc = m_nq->xmset.convert_to_percent(m_nq->xmset[xapi-first]);
|
452 |
pc = m_nq->xmset.convert_to_percent(m_nq->xmset[xapi-first]);
|
453 |
data = xdoc.get_data();
|
453 |
data = xdoc.get_data();
|
454 |
m_reason.erase();
|
454 |
m_reason.erase();
|
455 |
Chrono chron;
|
455 |
Chrono chron;
|
456 |
Xapian::TermIterator it = xdoc.termlist_begin();
|
456 |
Xapian::TermIterator it = xdoc.termlist_begin();
|
457 |
it.skip_to("Q");
|
457 |
it.skip_to(wrap_prefix(udi_prefix));
|
458 |
if (it != xdoc.termlist_end()) {
|
458 |
if (it != xdoc.termlist_end()) {
|
459 |
udi = *it;
|
459 |
udi = *it;
|
460 |
if (!udi.empty())
|
460 |
if (!udi.empty())
|
461 |
udi = udi.substr(1);
|
461 |
udi = udi.substr(wrap_prefix(udi_prefix).size());
|
462 |
}
|
462 |
}
|
463 |
LOGDEB2(("Query::getDoc: %d ms for udi [%s], collapse count %d\n",
|
463 |
LOGDEB2(("Query::getDoc: %d ms for udi [%s], collapse count %d\n",
|
464 |
chron.millis(), udi.c_str(), collapsecount));
|
464 |
chron.millis(), udi.c_str(), collapsecount));
|
465 |
break;
|
465 |
break;
|
466 |
} catch (Xapian::DatabaseModifiedError &error) {
|
466 |
} catch (Xapian::DatabaseModifiedError &error) {
|