|
a/src/rcldb/rclquery.cpp |
|
b/src/rcldb/rclquery.cpp |
|
... |
|
... |
243 |
sdata->setDescription(d);
|
243 |
sdata->setDescription(d);
|
244 |
LOGDEB(("Query::SetQuery: Q: %s\n", sdata->getDescription().c_str()));
|
244 |
LOGDEB(("Query::SetQuery: Q: %s\n", sdata->getDescription().c_str()));
|
245 |
return true;
|
245 |
return true;
|
246 |
}
|
246 |
}
|
247 |
|
247 |
|
248 |
|
|
|
249 |
bool Query::getQueryTerms(vector<string>& terms)
|
248 |
bool Query::getQueryTerms(vector<string>& terms)
|
250 |
{
|
249 |
{
|
251 |
if (ISNULL(m_nq))
|
250 |
if (ISNULL(m_nq))
|
252 |
return false;
|
251 |
return false;
|
253 |
|
252 |
|
|
... |
|
... |
286 |
m_nq->xenquire->get_matching_terms_begin(id),
|
285 |
m_nq->xenquire->get_matching_terms_begin(id),
|
287 |
m_nq->xenquire->get_matching_terms_end(id)),
|
286 |
m_nq->xenquire->get_matching_terms_end(id)),
|
288 |
m_db->m_ndb->xrdb, m_reason);
|
287 |
m_db->m_ndb->xrdb, m_reason);
|
289 |
|
288 |
|
290 |
if (!m_reason.empty()) {
|
289 |
if (!m_reason.empty()) {
|
291 |
LOGERR(("getQueryTerms: xapian error: %s\n", m_reason.c_str()));
|
290 |
LOGERR(("getMatchTerms: xapian error: %s\n", m_reason.c_str()));
|
292 |
return false;
|
291 |
return false;
|
293 |
}
|
292 |
}
|
294 |
|
293 |
|
295 |
return true;
|
294 |
return true;
|
296 |
}
|
295 |
}
|