Add db stats option to term explorer

This commit is contained in:
Jean-Francois Dockes 2013-01-10 15:12:43 +01:00
parent 5aad9d50e1
commit 8c5258ce19
7 changed files with 200 additions and 53 deletions

View file

@ -1707,7 +1707,10 @@ bool Db::termMatch(MatchType typ, const string &lang,
Xapian::Database xdb = m_ndb->xrdb;
XAPTRY(res.dbdoccount = xdb.get_doccount();
res.dbavgdoclen = xdb.get_avlength(), xdb, m_reason);
res.dbavgdoclen = xdb.get_avlength();
res.mindoclen = xdb.get_doclength_lower_bound();
res.maxdoclen = xdb.get_doclength_upper_bound();
, xdb, m_reason);
if (!m_reason.empty())
return false;