Switch to unified view

a/src/rcldb/rclquery.cpp b/src/rcldb/rclquery.cpp
...
...
262
    return false;
262
    return false;
263
    }
263
    }
264
    return true;
264
    return true;
265
}
265
}
266
266
267
abstract_result Query::makeDocAbstract(Doc &doc,
267
int Query::makeDocAbstract(Doc &doc,
268
                     vector<Snippet>& abstract, 
268
               vector<Snippet>& abstract, 
269
                     int maxoccs, int ctxwords)
269
               int maxoccs, int ctxwords)
270
{
270
{
271
    LOGDEB(("makeDocAbstract: maxoccs %d ctxwords %d\n", maxoccs, ctxwords));
271
    LOGDEB(("makeDocAbstract: maxoccs %d ctxwords %d\n", maxoccs, ctxwords));
272
    if (!m_db || !m_db->m_ndb || !m_db->m_ndb->m_isopen || !m_nq) {
272
    if (!m_db || !m_db->m_ndb || !m_db->m_ndb->m_isopen || !m_nq) {
273
    LOGERR(("Query::makeDocAbstract: no db or no nq\n"));
273
    LOGERR(("Query::makeDocAbstract: no db or no nq\n"));
274
    return ABSRES_ERROR;
274
    return ABSRES_ERROR;
275
    }
275
    }
276
    abstract_result ret = ABSRES_ERROR;
276
    int ret = ABSRES_ERROR;
277
    XAPTRY(ret = m_nq->makeAbstract(doc.xdocid, abstract, maxoccs, ctxwords),
277
    XAPTRY(ret = m_nq->makeAbstract(doc.xdocid, abstract, maxoccs, ctxwords),
278
           m_db->m_ndb->xrdb, m_reason);
278
           m_db->m_ndb->xrdb, m_reason);
279
    if (!m_reason.empty()) {
279
    if (!m_reason.empty()) {
280
    LOGDEB(("makeDocAbstract: makeAbstract error, reason: %s\n", 
280
    LOGDEB(("makeDocAbstract: makeAbstract error, reason: %s\n", 
281
        m_reason.c_str()));
281
        m_reason.c_str()));