[Xapian-devel] Fetching document content by Q term in Python
xapian-devel-list at swapoff.org
Fri Feb 9 00:18:10 GMT 2007
I'd like to be able to retrieve the indexes stored copy of the document
text and tried the following:
terms = self.db.allterms()
terms.skip_to('Q' + uri.encode('utf-8'))
term = terms.next()
doc = self.db.get_document(term)
I just wildly guessed that  was the docid, but of course it isn't. So the
question is, how do I get a docid out of a term?
Or if I'm completely on the wrong track, how do I get the document from
a Q term?
More information about the Xapian-devel