a/src/kde/kioslave/kio_recoll/kio_recoll.cpp b/src/kde/kioslave/kio_recoll/kio_recoll.cpp
...
...
310
    if (opt != 'l') {
310
    if (opt != 'l') {
311
    Rcl::SearchDataClause *clp = 0;
311
    Rcl::SearchDataClause *clp = 0;
312
    if (opt == 'f') {
312
    if (opt == 'f') {
313
        clp = new Rcl::SearchDataClauseFilename(qs);
313
        clp = new Rcl::SearchDataClauseFilename(qs);
314
    } else {
314
    } else {
315
      // If there is no white space inside the query, then the user
315
            clp = new Rcl::SearchDataClauseSimple(opt == 'o' ? Rcl::SCLT_OR : 
316
      // certainly means it as a phrase.
316
                                                  Rcl::SCLT_AND, qs);
317
      bool isreallyaphrase = false;
318
      if (!TextSplit::hasVisibleWhite(qs))
319
      isreallyaphrase = true;
320
      clp = isreallyaphrase ? 
321
      new Rcl::SearchDataClauseDist(Rcl::SCLT_PHRASE, qs, 0) :
322
      new Rcl::SearchDataClauseSimple(opt == 'o' ?
323
                      Rcl::SCLT_OR : Rcl::SCLT_AND, 
324
                      qs);
325
    }
317
    }
326
    sd = new Rcl::SearchData(Rcl::SCLT_OR, "english");
318
    sd = new Rcl::SearchData(Rcl::SCLT_OR, "english");
327
    if (sd && clp)
319
    if (sd && clp)
328
        sd->addClause(clp);
320
        sd->addClause(clp);
329
    } else {
321
    } else {