We can add a note to FSDirectory about that. For IndexWriter/IndexReader this hint is no longer needed (in Lucene 2.9), as all methods taking String/File instead of Directory are deprecated and users should create directory instances and then will automatically get to the place where the LockFactory can be supplied.
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Mark Miller [mailto:markrmil...@gmail.com] > Sent: Sunday, August 30, 2009 8:28 PM > To: java-user@lucene.apache.org > Subject: Re: Unintelligent implementation of IndexWriter locking? > > Jan Peter Stotz wrote: > > Mark Miller wrote: > > > > > >> Have you tried using a native lock factory? > >> > > > > No - I did not even know of it's existence as it is nowhere "visible" > from > > the IndexWriter class (not directly used and nowhere mentioned in the > > JavDoc. Could you please add a small hint after the description about > the > > "locking file" in the JavaDoc of the IndexWriter class that explains how > to > > specify the LockFactory? > > I am currently using FSDirectory.getDirectory(File,LockFactory)) and > then > > use that Directory to create my IndexWriter. > > That would make it easier for others to find their way... > > > > Thanks for your help, > > Jan > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > > I've created an issue: https://issues.apache.org/jira/browse/LUCENE-1877 > > Feel free to add your comments/suggestions. > > -- > - Mark > > http://www.lucidimagination.com > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org