added method to Rcl::Query for retrieving ref to SearchData + misc rclquery cleanup

This commit is contained in:
Jean-Francois Dockes
2012-12-19 10:33:27 +01:00
parent c6b90a0a78
commit 179d22f4ff
4 changed files with 62 additions and 56 deletions
+8 -3
View File
@@ -46,14 +46,19 @@ public:
Native(Query *q)
: m_q(q), xenquire(0)
{ }
~Native() {
{
}
~Native()
{
clear();
}
void clear() {
void clear()
{
delete xenquire; xenquire = 0;
termfreqs.clear();
}
/** Return a list of terms which matched for a specific result document */
bool getMatchTerms(unsigned long xdocid, std::vector<std::string>& terms);
abstract_result makeAbstract(Xapian::docid id, vector<Snippet>&,
int maxoccs = -1, int ctxwords = -1);
int getFirstMatchPage(Xapian::docid docid, std::string& term);