Switch to unified view

a/src/rcldb/searchdata.cpp b/src/rcldb/searchdata.cpp
...
...
85
        cfg->getMimeCatTypes(*it, tps);
85
        cfg->getMimeCatTypes(*it, tps);
86
        exptps.insert(exptps.end(), tps.begin(), tps.end());
86
        exptps.insert(exptps.end(), tps.begin(), tps.end());
87
    } else {
87
    } else {
88
        TermMatchResult res;
88
        TermMatchResult res;
89
        string mt = stringtolower((const string&)*it);
89
        string mt = stringtolower((const string&)*it);
90
      db.termMatch(Db::ET_WILD, "", mt, res, -1, "mtype");
90
      // We set casesens|diacsens to get an equivalent of ixTermMatch()
91
      db.termMatch(Db::ET_WILD|Db::ET_CASESENS|Db::ET_DIACSENS, string(),
92
           mt, res, -1, "mtype");
91
        if (res.entries.empty()) {
93
        if (res.entries.empty()) {
92
        exptps.push_back(it->c_str());
94
        exptps.push_back(it->c_str());
93
        } else {
95
        } else {
94
        for (vector<TermMatchEntry>::const_iterator rit = 
96
        for (vector<TermMatchEntry>::const_iterator rit = 
95
             res.entries.begin(); rit != res.entries.end(); rit++) {
97
             res.entries.begin(); rit != res.entries.end(); rit++) {