[Xapian-discuss] Python bindings - xapian.Database.reopen
Cedric Jeanneret
cedric.jeanneret at camptocamp.com
Tue Apr 14 15:15:10 BST 2009
Hello,
I'm using xapian in a pylons application, with pythons libs/bindings...
My indexes are created on other servers, then rsync-ed to my search engine... It seems that sometimes this process do some mess, as my Pylons app returns a big error :
Error - xapian.DatabaseModifiedError: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation
[snip useless trace]
DatabaseModifiedError: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation
Ok... so I'm trying to call xapian.Database.reopen().... but how ??
Trying to do so:
try:
d = xapian.Database('my/db')
except xapian.DatabaseModifiedError:
d = xapian.Database()
d.reopen('my/db')
doesn't work... Tryied "d = xapian.Database('my/db').reopen()" fails as well.
So... how can we call this function ? I'm unable to find out example nor doc about it.
Thanks in advance,
C.
--
Cédric Jeanneret | System Administrator
021 619 10 32 | Camptocamp SA
cedric.jeanneret at camptocamp.com | PSE-A / EPFL
More information about the Xapian-discuss
mailing list