[Xapian-discuss] Database flush problem

Olly Betts olly at survex.com
Fri Jul 3 05:24:21 BST 2009

On Wed, Jul 01, 2009 at 11:37:38AM +0800, Matt Chen wrote:
> I did the test several times, The api said it will be changed
> automatically after closed the database, but it didn't change anyway.
> I also add the flush() before the index process end, it didn't work.

The thread Richard referred to was talking about the situation when the
index process is persistent and also serviced search requests.

> Shall I re-construct the database obj that search daemon hold every
> time ? any suggestion would be great.

You can just call Database::reopen() which is more efficient than
reopening from scratch - see the API docs for details.


More information about the Xapian-discuss mailing list