|
a/src/rcldb/rcldoc.h |
|
b/src/rcldb/rcldoc.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _RCLDOC_H_INCLUDED_
|
17 |
#ifndef _RCLDOC_H_INCLUDED_
|
18 |
#define _RCLDOC_H_INCLUDED_
|
18 |
#define _RCLDOC_H_INCLUDED_
|
19 |
/* @(#$Id: rcldoc.h,v 1.3 2007-06-19 08:36:24 dockes Exp $ (C) 2006 J.F.Dockes */
|
19 |
/* @(#$Id: rcldoc.h,v 1.4 2008-07-28 08:42:52 dockes Exp $ (C) 2006 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
#include <map>
|
22 |
#include <map>
|
23 |
|
23 |
|
24 |
#ifndef NO_NAMESPACES
|
24 |
#ifndef NO_NAMESPACES
|
|
... |
|
... |
56 |
map<string, string> meta;
|
56 |
map<string, string> meta;
|
57 |
|
57 |
|
58 |
// Attribute for the "abstract" entry. true if it is just the top
|
58 |
// Attribute for the "abstract" entry. true if it is just the top
|
59 |
// of doc, not a native document attribute
|
59 |
// of doc, not a native document attribute
|
60 |
bool syntabs;
|
60 |
bool syntabs;
|
61 |
|
61 |
|
62 |
string fbytes; // File size. Set by Db::Add
|
62 |
// File size. Index: Set by caller prior to Db::Add. Query: set by
|
63 |
string dbytes; // Doc size. Set by Db::Add from text length
|
63 |
// rcldb from index doc data. Historically this always has
|
|
|
64 |
// represented the whole file size (as from stat()), but there
|
|
|
65 |
// would be a need for a 3rd value for multidoc files (file
|
|
|
66 |
// size/doc size/ doc text size)
|
|
|
67 |
string fbytes;
|
|
|
68 |
// Doc text size. Index: from text.length(). Query: set by rcldb from
|
|
|
69 |
// index doc data.
|
|
|
70 |
string dbytes;
|
|
|
71 |
// Doc signature. Used for up to date checks. This is opaque, and
|
|
|
72 |
// could just as well be ctime, size, ctime+size, md5, whatever.
|
|
|
73 |
// Index: set by Db::Add caller. Query: set from doc data.
|
|
|
74 |
string sig;
|
64 |
|
75 |
|
65 |
// The following fields don't go to the db record
|
76 |
// The following fields don't go to the db record
|
66 |
|
77 |
|
67 |
string text; // During indexing only: text returned by input handler will
|
78 |
string text; // During indexing only: text returned by input handler will
|
68 |
// be split and indexed
|
79 |
// be split and indexed
|
|
... |
|
... |
80 |
origcharset.erase();
|
91 |
origcharset.erase();
|
81 |
meta.clear();
|
92 |
meta.clear();
|
82 |
syntabs = false;
|
93 |
syntabs = false;
|
83 |
fbytes.erase();
|
94 |
fbytes.erase();
|
84 |
dbytes.erase();
|
95 |
dbytes.erase();
|
|
|
96 |
sig.erase();
|
85 |
|
97 |
|
86 |
text.erase();
|
98 |
text.erase();
|
87 |
pc = 0;
|
99 |
pc = 0;
|
88 |
xdocid = 0;
|
100 |
xdocid = 0;
|
89 |
}
|
101 |
}
|