|
a/src/rcldb/rcldb_p.h |
|
b/src/rcldb/rcldb_p.h |
|
... |
|
... |
112 |
*/
|
112 |
*/
|
113 |
bool subDocs(const string &udi, vector<Xapian::docid>& docids);
|
113 |
bool subDocs(const string &udi, vector<Xapian::docid>& docids);
|
114 |
|
114 |
|
115 |
};
|
115 |
};
|
116 |
|
116 |
|
117 |
// Field names inside the index data record may differ from the rcldoc ones
|
|
|
118 |
// (esp.: caption / title)
|
|
|
119 |
inline const string& docfToDatf(const string& df)
|
|
|
120 |
{
|
|
|
121 |
static const string keycap("caption");
|
|
|
122 |
static const string keydmtime("dmtime");
|
|
|
123 |
if (!df.compare(Doc::keytt)) {
|
|
|
124 |
return keycap;
|
|
|
125 |
} else if (!df.compare(Doc::keymt)) {
|
|
|
126 |
return keydmtime;
|
|
|
127 |
} else {
|
|
|
128 |
return df;
|
|
|
129 |
}
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
}
|
117 |
}
|
133 |
#endif /* _rcldb_p_h_included_ */
|
118 |
#endif /* _rcldb_p_h_included_ */
|