[Xapian-discuss] allterms() in Python

James Aylett james-xapian at tartarus.org
Sat Nov 25 13:32:07 GMT 2006


On Fri, Nov 24, 2006 at 11:33:58PM +0000, Francis Irving wrote:

> Much better, it works now. Each term is a 4 element list:
>     ['100', 0, 2, <xapian.PositionIter instance at 0xb7d56f2c>]
> which I presume is intentional.

Yup. They are, in order, the term, wdf, termfreq and the position
iterator for that term. (The last irrelevant for a database allterms
iterator.) Really we should get smarter about this and present them as
neat little objects rather than lists :-/

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list