|
a/src/rcldb/searchdata.h |
|
b/src/rcldb/searchdata.h |
|
... |
|
... |
73 |
*/
|
73 |
*/
|
74 |
class SearchData {
|
74 |
class SearchData {
|
75 |
public:
|
75 |
public:
|
76 |
SearchData(SClType tp)
|
76 |
SearchData(SClType tp)
|
77 |
: m_tp(tp), m_topdirexcl(false), m_topdirweight(1.0),
|
77 |
: m_tp(tp), m_topdirexcl(false), m_topdirweight(1.0),
|
78 |
m_haveDates(false), m_haveWildCards(false)
|
78 |
m_haveDates(false), m_maxSize(size_t(-1)),
|
|
|
79 |
m_minSize(size_t(-1)), m_haveWildCards(false)
|
79 |
{
|
80 |
{
|
80 |
if (m_tp != SCLT_OR && m_tp != SCLT_AND)
|
81 |
if (m_tp != SCLT_OR && m_tp != SCLT_AND)
|
81 |
m_tp = SCLT_OR;
|
82 |
m_tp = SCLT_OR;
|
82 |
}
|
83 |
}
|
83 |
~SearchData() {erase();}
|
84 |
~SearchData() {erase();}
|
|
... |
|
... |
111 |
{
|
112 |
{
|
112 |
m_topdir = t;
|
113 |
m_topdir = t;
|
113 |
m_topdirexcl = excl;
|
114 |
m_topdirexcl = excl;
|
114 |
m_topdirweight = w;
|
115 |
m_topdirweight = w;
|
115 |
}
|
116 |
}
|
|
|
117 |
|
|
|
118 |
void setMinSize(size_t size) {m_minSize = size;}
|
|
|
119 |
void setMaxSize(size_t size) {m_maxSize = size;}
|
116 |
|
120 |
|
117 |
/** Set date span for filtering results */
|
121 |
/** Set date span for filtering results */
|
118 |
void setDateSpan(DateInterval *dip) {m_dates = *dip; m_haveDates = true;}
|
122 |
void setDateSpan(DateInterval *dip) {m_dates = *dip; m_haveDates = true;}
|
119 |
|
123 |
|
120 |
/** Add file type for filtering results */
|
124 |
/** Add file type for filtering results */
|
|
... |
|
... |
152 |
string m_topdir; // Restrict to subtree.
|
156 |
string m_topdir; // Restrict to subtree.
|
153 |
bool m_topdirexcl; // Invert meaning
|
157 |
bool m_topdirexcl; // Invert meaning
|
154 |
float m_topdirweight; // affect weight instead of filter
|
158 |
float m_topdirweight; // affect weight instead of filter
|
155 |
bool m_haveDates;
|
159 |
bool m_haveDates;
|
156 |
DateInterval m_dates; // Restrict to date interval
|
160 |
DateInterval m_dates; // Restrict to date interval
|
|
|
161 |
size_t m_maxSize;
|
|
|
162 |
size_t m_minSize;
|
157 |
// Printable expanded version of the complete query, retrieved/set
|
163 |
// Printable expanded version of the complete query, retrieved/set
|
158 |
// from rcldb after the Xapian::setQuery() call
|
164 |
// from rcldb after the Xapian::setQuery() call
|
159 |
string m_description;
|
165 |
string m_description;
|
160 |
string m_reason;
|
166 |
string m_reason;
|
161 |
bool m_haveWildCards;
|
167 |
bool m_haveWildCards;
|