pombreda / djapian

Automatically exported from code.google.com/p/djapian
Other
0 stars 0 forks source link

Incompatibility with latest Xapian 1.2.2 release #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems like the method get_document() used in ResultSet in Djapian is 
outdated in the newest release of Xapian (I think 1.2.2), along with 
get_percent(), get_weight(), and many other of these functions.

Instead, Xapian is using self.document instead of self.get_document().

The error message is often:
'MSetItem' object has no attribute 'get_document'

To correct that, just modify the file resultset.py in the root directory where 
Djapian was installed so it uses 'doc = self.document', 'percent = 
self.percent' and etc.

Original issue reported on code.google.com by m.huaz...@gmail.com on 21 Jul 2010 at 4:28

GoogleCodeExporter commented 9 years ago
What version of Djapian do you use?

Original comment by daevaorn on 21 Jul 2010 at 7:04

GoogleCodeExporter commented 9 years ago
Djapian-2.3.1

Original comment by m.huaz...@gmail.com on 21 Jul 2010 at 7:35

GoogleCodeExporter commented 9 years ago
Yep. It is already pretty old release. Current trunk and future 2.4 release 
will support Xapian 1.2.x

Original comment by daevaorn on 21 Jul 2010 at 7:41

GoogleCodeExporter commented 9 years ago
kk thanks

Original comment by m.huaz...@gmail.com on 22 Jul 2010 at 5:21