fixed for recoll 1.18 but php issues. Needs php5 update?
This commit is contained in:
parent
bbfa4e58ff
commit
2b8e2c8301
1 changed files with 2 additions and 3 deletions
|
@ -125,13 +125,12 @@ PHP_METHOD(Query, query)
|
||||||
// jf: the original implementation built an AND clause. It would
|
// jf: the original implementation built an AND clause. It would
|
||||||
// be nice to offer an option, but the next best thing is to
|
// be nice to offer an option, but the next best thing is to
|
||||||
// default to the query language
|
// default to the query language
|
||||||
sd = wasaStringToRcl(rclconfig, qs, reason);
|
sd = wasaStringToRcl(rclconfig, "english", qs, reason);
|
||||||
|
|
||||||
if (!sd) {
|
if (!sd) {
|
||||||
cerr << "Query string interpretation failed: " << reason << endl;
|
cerr << "Query string interpretation failed: " << reason << endl;
|
||||||
RETURN_BOOL(false);
|
RETURN_BOOL(false);
|
||||||
}
|
}
|
||||||
sd->setStemlang("english");
|
|
||||||
|
|
||||||
RefCntr<Rcl::SearchData> rq(sd);
|
RefCntr<Rcl::SearchData> rq(sd);
|
||||||
Rcl::Query *pRclQuery = new Rcl::Query(pRclDb);
|
Rcl::Query *pRclQuery = new Rcl::Query(pRclDb);
|
||||||
|
@ -169,7 +168,7 @@ PHP_METHOD(Query, get_doc)
|
||||||
}
|
}
|
||||||
|
|
||||||
string abs;
|
string abs;
|
||||||
pRclQuery->whatDb()->makeDocAbstract(doc, pRclQuery, abs);
|
pRclQuery->makeDocAbstract(doc, abs);
|
||||||
|
|
||||||
char splitter[] = {7,8,1,2,0};
|
char splitter[] = {7,8,1,2,0};
|
||||||
char ret_string[1000];
|
char ret_string[1000];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue