|
a/src/query/recollq.cpp |
|
b/src/query/recollq.cpp |
|
... |
|
... |
65 |
for (vector<string>::const_iterator it = fields.begin();
|
65 |
for (vector<string>::const_iterator it = fields.begin();
|
66 |
it != fields.end(); it++) {
|
66 |
it != fields.end(); it++) {
|
67 |
string out;
|
67 |
string out;
|
68 |
if (!it->compare("abstract")) {
|
68 |
if (!it->compare("abstract")) {
|
69 |
string abstract;
|
69 |
string abstract;
|
70 |
rcldb.makeDocAbstract(doc, &query, abstract);
|
70 |
query.makeDocAbstract(doc, abstract);
|
71 |
base64_encode(abstract, out);
|
71 |
base64_encode(abstract, out);
|
72 |
} else {
|
72 |
} else {
|
73 |
base64_encode(doc.meta[*it], out);
|
73 |
base64_encode(doc.meta[*it], out);
|
74 |
}
|
74 |
}
|
75 |
cout << out << " ";
|
75 |
cout << out << " ";
|
|
... |
|
... |
374 |
cout << it->first << " = " << it->second << endl;
|
374 |
cout << it->first << " = " << it->second << endl;
|
375 |
}
|
375 |
}
|
376 |
}
|
376 |
}
|
377 |
if (op_flags & OPT_A) {
|
377 |
if (op_flags & OPT_A) {
|
378 |
string abstract;
|
378 |
string abstract;
|
379 |
if (rcldb.makeDocAbstract(doc, &query, abstract)) {
|
379 |
if (query.makeDocAbstract(doc, abstract)) {
|
380 |
cout << "ABSTRACT" << endl;
|
380 |
cout << "ABSTRACT" << endl;
|
381 |
cout << abstract << endl;
|
381 |
cout << abstract << endl;
|
382 |
cout << "/ABSTRACT" << endl;
|
382 |
cout << "/ABSTRACT" << endl;
|
383 |
}
|
383 |
}
|
384 |
}
|
384 |
}
|