Ben Phillips
2008-Oct-29 10:37 UTC
[Xapian-discuss] Problem opening stub database for writing
I'm using Xapian 1.0.8 and the python bindings. I have a flint database which I can open fine by doing the following: db_name = '/path/to/db/db-name' database = xapian.WritableDatabase(db_name, xapian.DB_OPEN) However, if I have stub file at '/path/to/db/db-stub' containing the following: flint /path/to/db/db-name db_name = '/path/to/db/db-stub' database = xapian.WritableDatabase(db_name, xapian.DB_OPEN) returns the following: DatabaseOpeningError: No flint database found at path `/path/to/db/db-stub' I can use xapian.open_stub(db_name) but then I can't write to the database. What's the correct way of opening a stub database for writing? Ben. -- www.playfire.com - now in public beta!
Olly Betts
2008-Oct-29 18:07 UTC
[Xapian-discuss] Problem opening stub database for writing
On Wed, Oct 29, 2008 at 10:37:33AM +0000, Ben Phillips wrote:> What's the correct way of opening a stub database for writing?Sorry, that's not supported in 1.0.x. Support for it has already been added to trunk though. Best workaround I can think of for now is to open and parse the file yourself to get the database path - it isn't a complex format at least. Cheers, Olly