Tobias Lohr wrote:
I'm not really sure, if this approach is possible for working in changes every 
- let's say - 30 seconds!?

The conventional wisdom is to use RAMDirectory in such scenarios. I.e. you commit frequent updates to a RAMDirectory and frequently reopen its Searcher (which should be fast). Periodically, merge the RAMDirectory index with your on-disk index - you need to open a new IndexSearcher in the background, warm it up with the latest N queries, and when it's ready you swap searchers, i.e. you close the old one, purge the RAMDirectory (since it was synced to the on-disk index), and start using the new IndexSearcher.

And again, start accumulating new docs in the RAMDirectory, etc, etc ...

--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to