|
a/src/rcldb/rclquery.cpp |
|
b/src/rcldb/rclquery.cpp |
|
... |
|
... |
445 |
}
|
445 |
}
|
446 |
doc.meta[Rcl::Doc::keyudi] = udi;
|
446 |
doc.meta[Rcl::Doc::keyudi] = udi;
|
447 |
|
447 |
|
448 |
doc.pc = pc;
|
448 |
doc.pc = pc;
|
449 |
char buf[200];
|
449 |
char buf[200];
|
450 |
if (collapsecount>0) {
|
450 |
if (collapsecount > 0) {
|
451 |
sprintf(buf,"%3d%% (%d)", pc, collapsecount+1);
|
451 |
sprintf(buf,"%3d%% (%d)", pc, collapsecount + 1);
|
452 |
} else {
|
452 |
} else {
|
453 |
sprintf(buf,"%3d%%", pc);
|
453 |
sprintf(buf,"%3d%%", pc);
|
454 |
}
|
454 |
}
|
455 |
doc.meta[Doc::keyrr] = buf;
|
455 |
doc.meta[Doc::keyrr] = buf;
|
456 |
|
456 |
|
|
|
457 |
if (collapsecount > 0) {
|
457 |
sprintf(buf, "%d", collapsecount);
|
458 |
sprintf(buf, "%d", collapsecount);
|
458 |
doc.meta[Rcl::Doc::keycc] = buf;
|
459 |
doc.meta[Rcl::Doc::keycc] = buf;
|
|
|
460 |
}
|
459 |
|
461 |
|
460 |
// Parse xapian document's data and populate doc fields
|
462 |
// Parse xapian document's data and populate doc fields
|
461 |
return m_db->m_ndb->dbDataToRclDoc(docid, data, doc);
|
463 |
return m_db->m_ndb->dbDataToRclDoc(docid, data, doc);
|
462 |
}
|
464 |
}
|
463 |
|
465 |
|