I can't find a straightforward yes or no answer to this! I know I can send multiple reads in parallel but can I query an index while a seperate process/thread is updating it?
+2
A:
Hi Matt. It's been a while since I used Lucene. However, assuming you are talking about the Java version, the FAQ has this to say:
Does Lucene allow searching and indexing simultaneously?
Yes. However, an IndexReader only searches the index as of the "point in time" that it was opened. Any updates to the index, either added or deleted documents, will not be visible until the IndexReader is re-opened. So your application must periodically re-open its IndexReaders to see the latest updates. The IndexReader.isCurrent() method allows you to test whether any updates have occurred to the index since your IndexReader was opened.
Matt Solnit
2009-08-18 23:51:50
I don't know how I missed this :-)
Matt
2009-08-19 00:08:10