[Xapian-discuss] search without flush.

Simon Roe simon.roe at talusdesign.co.uk
Wed Jun 3 10:40:49 BST 2009


On Tue, Jun 2, 2009 at 7:36 PM, Miki Tebeka <miki at fattoc.com> wrote:
> Hello Richard,
>
>> Is it possible to perform a search without flushing the index? I've got
>> an application that updates the index every 4 hours but I need to be
>> able to search the new data fairly quickly after the index is updated.
>> The problem revolves around the fact that the update is often much less
>> than 10 000 documents so it isn't being flushed until quite a bit
>> latter. I realise I can do a flush after the documents have been updated
>> but I was trying to avoid the flush.
> You can set the XAPIAN_FLUSH_THRESHOLD to a number lower than that.

Or just manually flush the database after you indexer runs:

http://xapian.org/docs/apidoc/html/classXapian_1_1WritableDatabase.html#d0077acafa9485c97b73b8726c375732

-- 
Help save the economy:
http://seriouschange.org.uk/

E: simon.roe at talusdesign.co.uk
M: 07742079314



More information about the Xapian-discuss mailing list