[Xapian-discuss] xapian-tcpsrv need to reopen database?

Olly Betts olly at survex.com
Sat May 20 06:46:19 BST 2006


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 database

You 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



More information about the Xapian-discuss mailing list