[Xapian-discuss] Problem opening stub database for writing

Ben Phillips ben at playfire.com
Wed Oct 29 10:37:33 GMT 2008


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!



More information about the Xapian-discuss mailing list