|
a/src/rcldb/rclquery.cpp |
|
b/src/rcldb/rclquery.cpp |
|
... |
|
... |
62 |
public:
|
62 |
public:
|
63 |
QSorter(const string& f)
|
63 |
QSorter(const string& f)
|
64 |
: m_fld(docfToDatf(f) + "=")
|
64 |
: m_fld(docfToDatf(f) + "=")
|
65 |
{
|
65 |
{
|
66 |
m_ismtime = !m_fld.compare("dmtime=");
|
66 |
m_ismtime = !m_fld.compare("dmtime=");
|
67 |
m_issize = !m_fld.compare("fbytes=") || !m_fld.compare("dbytes=");
|
67 |
m_issize = !m_fld.compare("fbytes=") || !m_fld.compare("dbytes=") ||
|
|
|
68 |
!m_fld.compare("pcbytes=");
|
68 |
}
|
69 |
}
|
69 |
|
70 |
|
70 |
virtual std::string operator()(const Xapian::Document& xdoc) const
|
71 |
virtual std::string operator()(const Xapian::Document& xdoc) const
|
71 |
{
|
72 |
{
|
72 |
string data = xdoc.get_data();
|
73 |
string data = xdoc.get_data();
|