On 2/13/07, Ken Krugler <[EMAIL PROTECTED]> wrote:
>A Lucene's IndexReader opens all index files it needs when it is instantiated. >Changes to a Lucene index via IndexWriter never change an existing >file... new files are always created. >Put the two together and it allows an IndexWriter (or anything else, >like snapinstaller) to change the index in the background without >impact to open readers. Right, but from looking at the snapinstaller script it seemed as though the deletion of the "index" directory would be deleting files out from under the IndexReader.
Files aren't truly deleted until no process has an open file descriptor: http://users.actcom.co.il/~choo/lupg/tutorials/handling-files/handling-files.html#sys_file_unlink -Mike