moved snippets generation code from db to query object
This commit is contained in:
parent
94b571aac6
commit
e48d402823
12 changed files with 603 additions and 562 deletions
|
@ -89,16 +89,7 @@ class Db::Native {
|
|||
#endif // IDX_THREADS
|
||||
}
|
||||
|
||||
double qualityTerms(Xapian::docid docid,
|
||||
Query *query,
|
||||
const vector<string>& terms,
|
||||
std::multimap<double, string>& byQ);
|
||||
void setDbWideQTermsFreqs(Query *query);
|
||||
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);
|
||||
|
||||
bool dbDataToRclDoc(Xapian::docid docid, std::string &data, Doc &doc);
|
||||
|
@ -122,5 +113,9 @@ class Db::Native {
|
|||
|
||||
};
|
||||
|
||||
// This is the word position offset at which we index the body text
|
||||
// (abstract, keywords, etc.. are stored before this)
|
||||
static const unsigned int baseTextPosition = 100000;
|
||||
|
||||
}
|
||||
#endif /* _rcldb_p_h_included_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue