|
a/src/query/recollq.cpp |
|
b/src/query/recollq.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: recollq.cpp,v 1.4 2007-02-14 10:08:05 dockes Exp $ (C) 2006 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: recollq.cpp,v 1.5 2007-06-08 12:33:00 dockes Exp $ (C) 2006 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
110 |
if (!rclconfig || !rclconfig->ok()) {
|
110 |
if (!rclconfig || !rclconfig->ok()) {
|
111 |
fprintf(stderr, "Recoll init failed: %s\n", reason.c_str());
|
111 |
fprintf(stderr, "Recoll init failed: %s\n", reason.c_str());
|
112 |
exit(1);
|
112 |
exit(1);
|
113 |
}
|
113 |
}
|
114 |
dbdir = rclconfig->getDbDir();
|
114 |
dbdir = rclconfig->getDbDir();
|
115 |
rcldb.open(dbdir, Rcl::Db::DbRO, Rcl::Db::QO_STEM);
|
115 |
rcldb.open(dbdir, rclconfig->getStopfile(),
|
|
|
116 |
Rcl::Db::DbRO, Rcl::Db::QO_STEM);
|
116 |
|
117 |
|
117 |
Rcl::SearchData *sd = 0;
|
118 |
Rcl::SearchData *sd = 0;
|
118 |
|
119 |
|
119 |
if ((op_flags & OPT_a) || (op_flags & OPT_o)) {
|
120 |
if ((op_flags & OPT_a) || (op_flags & OPT_o)) {
|
120 |
sd = new Rcl::SearchData(Rcl::SCLT_OR);
|
121 |
sd = new Rcl::SearchData(Rcl::SCLT_OR);
|