|
a/src/query/recollq.cpp |
|
b/src/query/recollq.cpp |
|
... |
|
... |
317 |
Rcl::Query query(&rcldb);
|
317 |
Rcl::Query query(&rcldb);
|
318 |
if (op_flags & OPT_S) {
|
318 |
if (op_flags & OPT_S) {
|
319 |
query.setSortBy(sortfield, (op_flags & OPT_D) ? false : true);
|
319 |
query.setSortBy(sortfield, (op_flags & OPT_D) ? false : true);
|
320 |
}
|
320 |
}
|
321 |
Chrono chron;
|
321 |
Chrono chron;
|
322 |
query.setQuery(rq);
|
322 |
if (!query.setQuery(rq)) {
|
|
|
323 |
cerr << "Query setup failed: " << query.getReason() << endl;
|
|
|
324 |
return(1);
|
|
|
325 |
}
|
323 |
int cnt = query.getResCnt();
|
326 |
int cnt = query.getResCnt();
|
324 |
if (!(op_flags & OPT_b)) {
|
327 |
if (!(op_flags & OPT_b)) {
|
325 |
cout << "Recoll query: " << rq->getDescription() << endl;
|
328 |
cout << "Recoll query: " << rq->getDescription() << endl;
|
326 |
if (firstres == 0) {
|
329 |
if (firstres == 0) {
|
327 |
if (cnt <= maxcount)
|
330 |
if (cnt <= maxcount)
|