Separate count and context for snippets in the snippets popup from the default values for the result list

This commit is contained in:
Jean-Francois Dockes 2012-09-23 18:19:43 +02:00
parent 694755a2d0
commit 7a3cfa6c77
10 changed files with 99 additions and 33 deletions

View file

@ -89,8 +89,9 @@ class Db::Native {
const vector<string>& terms,
std::multimap<double, string>& byQ);
void setDbWideQTermsFreqs(Query *query);
bool makeAbstract(Xapian::docid id, Query *query,
vector<pair<int, string> >&);
abstract_result makeAbstract(Xapian::docid id, Query *query,
vector<pair<int, string> >&, int maxoccs = -1,
int ctxwords = -1);
bool getPagePositions(Xapian::docid docid, vector<int>& vpos);
int getFirstMatchPage(Xapian::docid docid, Query *query);
int getPageNumberForPosition(const vector<int>& pbreaks, unsigned int pos);