|
a/src/rcldb/searchdata.cpp |
|
b/src/rcldb/searchdata.cpp |
|
... |
|
... |
72 |
// Actually, using getAllMimeTypes() here is a bit problematic because
|
72 |
// Actually, using getAllMimeTypes() here is a bit problematic because
|
73 |
// there maybe other types in the index, not indexed by content, but
|
73 |
// there maybe other types in the index, not indexed by content, but
|
74 |
// which could be searched by file name. It would probably be
|
74 |
// which could be searched by file name. It would probably be
|
75 |
// preferable to do a termMatch() on field "mtype", which would
|
75 |
// preferable to do a termMatch() on field "mtype", which would
|
76 |
// retrieve all values from the index.
|
76 |
// retrieve all values from the index.
|
77 |
bool SearchData::expandFileTypes(RclConfig *cfg, vector<string>& tps)
|
77 |
bool SearchData::expandFileTypes(const RclConfig *cfg, vector<string>& tps)
|
78 |
{
|
78 |
{
|
79 |
if (!cfg) {
|
79 |
if (!cfg) {
|
80 |
LOGFATAL(("Db::expandFileTypes: null configuration!!\n"));
|
80 |
LOGFATAL(("Db::expandFileTypes: null configuration!!\n"));
|
81 |
return false;
|
81 |
return false;
|
82 |
}
|
82 |
}
|