[Xapian-discuss] search without flush.

Miki Tebeka miki at fattoc.com
Tue Jun 2 19:36:58 BST 2009


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.

All the best,
--
Miki Tebeka
miki at fattoc.com



More information about the Xapian-discuss mailing list