Re: Concurrent Indexing and Searching

2009-09-25 Thread Jake Mannix
Hi Klaus, If you've really still got 500MB of changes to your index since the last time you commit()'ed, then the call to commit() will be costly and take a while to complete. If in another thread, you reopen() an IndexReader pointing to that index, it will only see changes since the most recen

Re: Concurrent Indexing and Searching

2009-09-25 Thread Jason Rutherglen
It depends on whether or not the commit completes before the reopen. Lucene 2.9 adds an IndexWriter.getReader method that will always return with the latest modifications to your index. So if you're adding many documents, you can at anytime, call IW.getReader and you will be able to search the cha