api translation

May 27, 2008 15:15



db = xapian.Database('xapian.db')

posting_iter = db.postlist_begin('')
posting_end = db.postlist_end('')

while posting_iter != posting_end:
docid = posting_iter.get_docid()
doc = db.get_document(docid)
print '%r' % doc.get_data()
posting_iter.next()

о да, как я люблю свиганутые биндинги
Previous post Next post
Up