On Wed, 12 Jan 2005, Morus Walter wrote: > Joseph Ottinger writes: > > > > According to IndexWriter.java, line 246 (in 1.4.3's codebase), if closeDir > > is set, it's supposed to close the directory. That's fine - but that leads > > me to believe that for some reason, closeDir is *not* set. > > > > Why? Under what circumstances would this not be true, and under what > > circumstances would you NOT want to close the Directory? > > > >From the sources, you can see, that is is true only, if the directory > is created by the IndexWriter itself. If you provide a directory to > the IndexWriter you have to close it yourself. >
ARGH! (I've been saying that a lot lately!) Okay, I was looking at the sources but missed that. Thank you very much. *sigh* ----------------------------------------------------------------------- Joseph B. Ottinger http://enigmastation.com IT Consultant [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]