|
a/src/rcldb/rcldoc.h |
|
b/src/rcldb/rcldoc.h |
|
... |
|
... |
110 |
|
110 |
|
111 |
// Main document text. This is plaintext utf-8 text to be split
|
111 |
// Main document text. This is plaintext utf-8 text to be split
|
112 |
// and indexed
|
112 |
// and indexed
|
113 |
string text;
|
113 |
string text;
|
114 |
|
114 |
|
|
|
115 |
/////////////////////////////////////////////////
|
|
|
116 |
// Misc stuff
|
|
|
117 |
|
115 |
int pc; // relevancy percentage, used by sortseq, convenience
|
118 |
int pc; // relevancy percentage, used by sortseq, convenience
|
116 |
unsigned long xdocid; // Opaque: rcldb doc identifier.
|
119 |
unsigned long xdocid; // Opaque: rcldb doc identifier.
|
117 |
|
120 |
|
|
|
121 |
// Page breaks were stored during indexing.
|
|
|
122 |
bool haspages;
|
|
|
123 |
|
118 |
///////////////////////////////////////////////////////////////////
|
124 |
///////////////////////////////////////////////////////////////////
|
|
|
125 |
|
119 |
void erase() {
|
126 |
void erase() {
|
120 |
url.erase();
|
127 |
url.erase();
|
121 |
ipath.erase();
|
128 |
ipath.erase();
|
122 |
mimetype.erase();
|
129 |
mimetype.erase();
|
123 |
fmtime.erase();
|
130 |
fmtime.erase();
|
|
... |
|
... |
131 |
sig.erase();
|
138 |
sig.erase();
|
132 |
|
139 |
|
133 |
text.erase();
|
140 |
text.erase();
|
134 |
pc = 0;
|
141 |
pc = 0;
|
135 |
xdocid = 0;
|
142 |
xdocid = 0;
|
|
|
143 |
haspages = false;
|
|
|
144 |
}
|
|
|
145 |
Doc()
|
|
|
146 |
: syntabs(false), pc(0), xdocid(0), haspages(false)
|
136 |
}
|
147 |
{
|
137 |
|
148 |
}
|
138 |
/** Get value for named field. If value pointer is 0, just test existence */
|
149 |
/** Get value for named field. If value pointer is 0, just test existence */
|
139 |
bool getmeta(const string& nm, string *value = 0) const
|
150 |
bool getmeta(const string& nm, string *value = 0) const
|
140 |
{
|
151 |
{
|
141 |
map<string,string>::const_iterator it = meta.find(nm);
|
152 |
map<string,string>::const_iterator it = meta.find(nm);
|
142 |
if (it != meta.end()) {
|
153 |
if (it != meta.end()) {
|