[Xapian-discuss] flush() definitely required before close()
henka at cityweb.co.za
henka at cityweb.co.za
Wed Dec 23 11:21:23 GMT 2009
Greets,
WRT this discussion:
http://lists.xapian.org/pipermail/xapian-discuss/2009-November/007300.html
Richard recommends calling flush() before closing a index database
segment, etc. Well, I can confirm that calling flush() is *required*
before calling close() since close() on it's own does not commit/flush any
pending writes/whatever unless the Perl script terminates, etc.
So, for a long-lived indexer which creates index segments with new/close,
you'll need new/flush/close.
Cheers
Henry
More information about the Xapian-discuss
mailing list