Miki Tebeka
2009-May-06 19:15 UTC
[Xapian-discuss] Using xapian-tcpsrv for both indexing and searching
Hello All, I'm trying to use xapian-tcpsrv for both indexing and searching. Running "xapian-tcpsrv --writable --timeout 0 /path/to/db" Then I have one process which connects to the server and indexes new documents, (this works good). However when I try to connect in another process for searching, I get: xapian.DatabaseLockError: REMOTE:Unable to acquire database write lock on db: already locked (Using Python bindings). If I remote the --writable switch then the indexer process exits with xapian.InvalidOperationError: REMOTE:Server is read-only (Which is expected). Any ideas on how to solve this? Is there a better way to use xapian in server/client mode? Thanks, -- Miki Tebeka miki at fattoc.com
James Aylett
2009-May-06 22:37 UTC
[Xapian-discuss] Using xapian-tcpsrv for both indexing and searching
On Wed, May 06, 2009 at 12:15:45PM -0700, Miki Tebeka wrote:> However when I try to connect in another process for searching, I get: > xapian.DatabaseLockError: REMOTE:Unable to acquire database write lock on > db: already locked > (Using Python bindings).Are you trying to create a WriteableDatabase? You can only have one writer open at once, but this shouldn't prevent what you're attempting. J -- James Aylett talktorex.co.uk - xapian.org - uncertaintydivision.org