Switch to unified view

a/src/rcldb/rclquery.cpp b/src/rcldb/rclquery.cpp
...
...
36
#include "unacpp.h"
36
#include "unacpp.h"
37
37
38
#ifndef NO_NAMESPACES
38
#ifndef NO_NAMESPACES
39
namespace Rcl {
39
namespace Rcl {
40
#endif
40
#endif
41
42
// Field names inside the index data record may differ from the rcldoc ones
43
// (esp.: caption / title)
44
static const string& docfToDatf(const string& df)
45
{
46
    static const string keycap("caption");
47
    static const string keydmtime("dmtime");
48
    if (!df.compare(Doc::keytt)) {
49
  return keycap;
50
    } else if (!df.compare(Doc::keymt)) {
51
  return keydmtime;
52
    } else {
53
  return df;
54
    }
55
}
41
56
42
// Sort helper class
57
// Sort helper class
43
class QSorter : public Xapian::Sorter {
58
class QSorter : public Xapian::Sorter {
44
public:
59
public:
45
    QSorter(const string& f) 
60
    QSorter(const string& f)