|
a/src/rcldb/rcldb.cpp |
|
b/src/rcldb/rcldb.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.149 2008-12-04 11:49:59 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.150 2008-12-12 11:02:20 dockes Exp $ (C) 2004 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
|
|
... |
|
... |
140 |
|
140 |
|
141 |
// Turn data record from db into document fields
|
141 |
// Turn data record from db into document fields
|
142 |
bool Db::Native::dbDataToRclDoc(Xapian::docid docid, std::string &data,
|
142 |
bool Db::Native::dbDataToRclDoc(Xapian::docid docid, std::string &data,
|
143 |
Doc &doc, int percent)
|
143 |
Doc &doc, int percent)
|
144 |
{
|
144 |
{
|
145 |
LOGDEB1(("Db::dbDataToRclDoc: data: %s\n", data.c_str()));
|
145 |
LOGDEB0(("Db::dbDataToRclDoc: data: %s\n", data.c_str()));
|
146 |
ConfSimple parms(&data);
|
146 |
ConfSimple parms(&data);
|
147 |
if (!parms.ok())
|
147 |
if (!parms.ok())
|
148 |
return false;
|
148 |
return false;
|
149 |
parms.get(Doc::keyurl, doc.url);
|
149 |
parms.get(Doc::keyurl, doc.url);
|
150 |
parms.get(Doc::keytp, doc.mimetype);
|
150 |
parms.get(Doc::keytp, doc.mimetype);
|