Switch to unified view

a/src/php/recoll/recoll.cpp b/src/php/recoll/recoll.cpp
...
...
123
    Rcl::SearchData *sd = 0;
123
    Rcl::SearchData *sd = 0;
124
124
125
    // jf: the original implementation built an AND clause. It would
125
    // jf: the original implementation built an AND clause. It would
126
    // be nice to offer an option, but the next best thing is to
126
    // be nice to offer an option, but the next best thing is to
127
    // default to the query language
127
    // default to the query language
128
    sd = wasaStringToRcl(rclconfig, qs, reason);
128
    sd = wasaStringToRcl(rclconfig, "english", qs, reason);
129
129
130
    if (!sd) {
130
    if (!sd) {
131
    cerr << "Query string interpretation failed: " << reason << endl;
131
    cerr << "Query string interpretation failed: " << reason << endl;
132
    RETURN_BOOL(false);
132
    RETURN_BOOL(false);
133
    }
133
    }
134
    sd->setStemlang("english");
135
134
136
    RefCntr<Rcl::SearchData> rq(sd);
135
    RefCntr<Rcl::SearchData> rq(sd);
137
    Rcl::Query *pRclQuery = new Rcl::Query(pRclDb);
136
    Rcl::Query *pRclQuery = new Rcl::Query(pRclDb);
138
    pRclQuery->setQuery(rq);
137
    pRclQuery->setQuery(rq);
139
138
...
...
167
    {
166
    {
168
    RETURN_BOOL(false);
167
    RETURN_BOOL(false);
169
    }
168
    }
170
169
171
    string abs;
170
    string abs;
172
    pRclQuery->whatDb()->makeDocAbstract(doc, pRclQuery, abs);
171
    pRclQuery->makeDocAbstract(doc, abs);
173
172
174
    char splitter[] = {7,8,1,2,0};
173
    char splitter[] = {7,8,1,2,0};
175
    char ret_string[1000];
174
    char ret_string[1000];
176
    snprintf(ret_string, 1000, "mime:%s%surl:%s%stitle:%s%sabs:%s",
175
    snprintf(ret_string, 1000, "mime:%s%surl:%s%stitle:%s%sabs:%s",
177
        doc.mimetype.c_str(),splitter,
176
        doc.mimetype.c_str(),splitter,