[Xapian-discuss] Counting and statistics

Olly Betts olly at survex.com
Fri Mar 30 23:29:21 BST 2007

On Fri, Mar 30, 2007 at 09:57:27AM +0100, Richard Boulton wrote:
> Yes - it would also be nice to be able get this information without 
> having to do an expand: ie, to call RSet::get_collectionfreq(term) and 
> RSet::get_termfreq(term), if something like that is possible to 
> implement.

An RSet has no Database as context, so as written that certainly isn't
possible - you'd need a Database parameter to each method or some other

> The implementation would have to do essentially the same 
> work as is done when doing an expand, of course.

Note this isn't what has been requested - Andreas is wanting to know
this information for terms in the ESet, and in that case we're already
doing the work required to calculate the "rtermfreq" anyway so the
natural API change would be to add a "get_rtermfreq" method to


More information about the Xapian-discuss mailing list