|
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.20 2008-10-13 08:23:36 dockes Exp $ (C) 2006 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: recollq.cpp,v 1.21 2008-12-05 11:09:31 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
|
|
... |
|
... |
201 |
clp = new Rcl::SearchDataClauseFilename(qs);
|
201 |
clp = new Rcl::SearchDataClauseFilename(qs);
|
202 |
} else {
|
202 |
} else {
|
203 |
// If there is no white space inside the query, then the user
|
203 |
// If there is no white space inside the query, then the user
|
204 |
// certainly means it as a phrase.
|
204 |
// certainly means it as a phrase.
|
205 |
bool isreallyaphrase = false;
|
205 |
bool isreallyaphrase = false;
|
206 |
if (qs.find_first_of(" \t") == string::npos)
|
206 |
if (!TextSplit::hasVisibleWhite(qs))
|
207 |
isreallyaphrase = true;
|
207 |
isreallyaphrase = true;
|
208 |
clp = isreallyaphrase ?
|
208 |
clp = isreallyaphrase ?
|
209 |
new Rcl::SearchDataClauseDist(Rcl::SCLT_PHRASE, qs, 0) :
|
209 |
new Rcl::SearchDataClauseDist(Rcl::SCLT_PHRASE, qs, 0) :
|
210 |
new Rcl::SearchDataClauseSimple((op_flags & OPT_o)?
|
210 |
new Rcl::SearchDataClauseSimple((op_flags & OPT_o)?
|
211 |
Rcl::SCLT_OR : Rcl::SCLT_AND,
|
211 |
Rcl::SCLT_OR : Rcl::SCLT_AND,
|