|
a/src/query/recollq.cpp |
|
b/src/query/recollq.cpp |
|
... |
|
... |
353 |
doc.url = url_encode(doc.url);
|
353 |
doc.url = url_encode(doc.url);
|
354 |
|
354 |
|
355 |
if (op_flags & OPT_b) {
|
355 |
if (op_flags & OPT_b) {
|
356 |
cout << doc.url << endl;
|
356 |
cout << doc.url << endl;
|
357 |
} else {
|
357 |
} else {
|
|
|
358 |
string titleorfn = doc.meta[Rcl::Doc::keytt];
|
|
|
359 |
if (titleorfn.empty())
|
|
|
360 |
titleorfn = doc.meta[Rcl::Doc::keyfn];
|
|
|
361 |
|
358 |
char cpc[20];
|
362 |
char cpc[20];
|
359 |
sprintf(cpc, "%d", doc.pc);
|
363 |
sprintf(cpc, "%d", doc.pc);
|
360 |
cout
|
364 |
cout
|
361 |
<< doc.mimetype << "\t"
|
365 |
<< doc.mimetype << "\t"
|
362 |
<< "[" << doc.url << "]" << "\t"
|
366 |
<< "[" << doc.url << "]" << "\t"
|
363 |
<< "[" << doc.meta[Rcl::Doc::keytt] << "]" << "\t"
|
367 |
<< "[" << titleorfn << "]" << "\t"
|
364 |
<< doc.fbytes << "\tbytes" << "\t"
|
368 |
<< doc.fbytes << "\tbytes" << "\t"
|
365 |
<< endl;
|
369 |
<< endl;
|
366 |
if (op_flags & OPT_m) {
|
370 |
if (op_flags & OPT_m) {
|
367 |
for (map<string,string>::const_iterator it = doc.meta.begin();
|
371 |
for (map<string,string>::const_iterator it = doc.meta.begin();
|
368 |
it != doc.meta.end(); it++) {
|
372 |
it != doc.meta.end(); it++) {
|