Switch to unified view

a/src/query/docseqdb.cpp b/src/query/docseqdb.cpp
...
...
25
#include "debuglog.h"
25
#include "debuglog.h"
26
26
27
DocSequenceDb::DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, 
27
DocSequenceDb::DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, 
28
                 RefCntr<Rcl::SearchData> sdata) 
28
                 RefCntr<Rcl::SearchData> sdata) 
29
    : DocSequence(t), m_q(q), m_sdata(sdata), m_fsdata(sdata),
29
    : DocSequence(t), m_q(q), m_sdata(sdata), m_fsdata(sdata),
30
      m_rescnt(-1), m_filt(false)
30
      m_rescnt(-1), m_filt(false),
31
      m_queryBuildAbstract(true),
32
      m_queryReplaceAbstract(false)
31
{
33
{
32
}
34
}
33
35
34
DocSequenceDb::~DocSequenceDb() 
36
DocSequenceDb::~DocSequenceDb() 
35
{
37
{
...
...
64
string DocSequenceDb::getAbstract(Rcl::Doc &doc)
66
string DocSequenceDb::getAbstract(Rcl::Doc &doc)
65
{
67
{
66
    if (!m_q->whatDb())
68
    if (!m_q->whatDb())
67
    return doc.meta[Rcl::Doc::keyabs];
69
    return doc.meta[Rcl::Doc::keyabs];
68
    string abstract;
70
    string abstract;
71
72
     if (m_queryBuildAbstract && (doc.syntabs || m_queryReplaceAbstract)) {
69
    m_q->whatDb()->makeDocAbstract(doc, m_q.getptr(), abstract);
73
        m_q->whatDb()->makeDocAbstract(doc, m_q.getptr(), abstract);
74
    } else {
75
        abstract = doc.meta[Rcl::Doc::keyabs];
76
    }
77
70
    return abstract.empty() ? doc.meta[Rcl::Doc::keyabs] : abstract;
78
    return abstract.empty() ? doc.meta[Rcl::Doc::keyabs] : abstract;
71
}
79
}
72
80
73
list<string> DocSequenceDb::expand(Rcl::Doc &doc)
81
list<string> DocSequenceDb::expand(Rcl::Doc &doc)
74
{
82
{