Fix reslist parent doc operations. Closes issue #54
This commit is contained in:
parent
ea981e1d19
commit
02ff94e259
@ -98,7 +98,7 @@ class DocSequence {
|
||||
return doc.meta[Rcl::Doc::keyabs];
|
||||
}
|
||||
|
||||
virtual bool getEnclosing(Rcl::Doc&, Rcl::Doc&) {return false;}
|
||||
virtual bool getEnclosing(Rcl::Doc&, Rcl::Doc&) = 0;
|
||||
|
||||
/** Get estimated total count in results */
|
||||
virtual int getResCnt() = 0;
|
||||
@ -173,6 +173,12 @@ public:
|
||||
return false;
|
||||
return m_seq->getTerms(terms, groups, gslks);
|
||||
}
|
||||
virtual bool getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc)
|
||||
{
|
||||
if (m_seq.isNull())
|
||||
return false;
|
||||
return m_seq->getEnclosing(doc, pdoc);
|
||||
}
|
||||
virtual void getUTerms(vector<string>& terms)
|
||||
{
|
||||
if (m_seq.isNull())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user