--- a/src/rcldb/rclquery.cpp
+++ b/src/rcldb/rclquery.cpp
@@ -24,6 +24,7 @@
#include "xapian.h"
+#include "cstr.h"
#include "rcldb.h"
#include "rcldb_p.h"
#include "rclquery.h"
@@ -39,17 +40,15 @@
namespace Rcl {
#endif
-static const string cstr_keycap("caption");
-static const string cstr_keydmtime("dmtime");
// Field names inside the index data record may differ from the rcldoc ones
// (esp.: caption / title)
static const string& docfToDatf(const string& df)
{
if (!df.compare(Doc::keytt)) {
- return cstr_keycap;
+ return cstr_caption;
} else if (!df.compare(Doc::keymt)) {
- return cstr_keydmtime;
+ return cstr_dmtime;
} else {
return df;
}