Rafael Jorge
2006-May-20 02:30 UTC
[Xapian-discuss] xapian-tcpsrv need to reopen database?
Hi, I'm adapting the omega (in a Python way ;) to do search across multiple remotes database, for now, I have only one xapian-tcpsrc running, but I have documents being inserted at the same time, so (like I have readed in others e-mails) the xapian-tcpsrc throw the following message: Connection from 192.168.0.101, port 64161 Got exception DatabaseModifiedError: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation Closing connection. Raising an IOError on the python script, would have the xapian-tcpsrc to reopen the database? Have some patch for this, or this not is a error? Should I try write a (dirt) patch? xD Best regards Thx! -- SDM Underlinux Garimpar.com -- PEP-8 "Mais vale um ponteiro na mao do que duas classes voando"
On Fri, May 19, 2006 at 10:29:55PM -0300, Rafael Jorge wrote:> Hi, I'm adapting the omega (in a Python way ;) to do search across multiple > remotes databaseYou already can - use a stub database to specify each remote database and get Omega to open the stub databases by specifying multiple DB parameters (or multiple databases in one DB parameter, separated by '/'). Or you can list multiple remote databases (or a mixture of local and remote) in a single stub database if that's more useful. The stub database is a text file whose format is documented here: http://www.xapian.org/docs/overview.html> Connection from 192.168.0.101, port 64161 > Got exception DatabaseModifiedError: The revision being read has been > discarded - you should call Xapian::Database::reopen() and retry the > operation > Closing connection. > > Raising an IOError on the python script, would have the xapian-tcpsrc to > reopen the database?You should just be able to call reopen() on the Xapian.Database object in your python script, but this doesn't appear to be implemented. I'll sort that out. Cheers, Olly
Fabrice Colin
2006-May-26 09:47 UTC
[Xapian-discuss] xapian-tcpsrv need to reopen database?
On 5/24/06, Olly Betts <olly@survex.com> wrote:> I'm currently working on the remote backend - I'll try to sort this > out in the next few days. >Out of curiosity, are you planning to add some kind of authentication scheme ? Fabrice