[Xapian-discuss] Two questions

Olly Betts olly at survex.com
Mon May 2 23:31:54 BST 2005


On Sat, Apr 30, 2005 at 06:31:08PM +0200, roki roki wrote:
> Is it possible to get list of most used words in database?

Not directly.  You can iterate over all the terms in the database (using
Xapian::Database::allterms_begin() and allterms_end()) and inspect the
term frequencies.  Terms aren't stored sorted or indexed by frequency,
so there isn't a magically more efficient way.

Cheers,
    Olly



More information about the Xapian-discuss mailing list