This question is more appropriate for lucene-user. You may also get more help there.
While locking is disabled with a global system property, you normally set properties with -D command line options when invoking java. If you do want locks, don't use -D. I am assuming that you are not mixing indices that need locking and those that should not be locked in the same invocation of your Java application. There is also nothing in the code that disables locks forever - only during the Java invocation with -DdisableLuceneLocks=true. If you subsequently start your application without that -D.... business the locks will be used again. Otis --- mchaput <[EMAIL PROTECTED]> wrote: > Otis Gospodnetic wrote: > > Look at the CHANGES.txt file, some changes dealing with lock files > were > > made a while ago. Have you tried using that? > > I checked it out, but it's seems to be a global system property-- as > I > understand it, it would be only be useful if all indexes on any given > > machine are only and forever going to be read-only. I'd prefer a more > > flexible approach that expects write access but doesn't break > searching > if it doesn't get it. > > Right now suggestions from other people around here are running > toward > modifying the code to write lock files to /tmp or C:\temp, however > I'm > pretty sure that would be a bit of a serious change for me to do > given > that I'm not familiar with the source. > > Any thoughts on a nice, easy way to get around this? > > Thanks for listening! > > Matt > > > -- > | > Matt Chaput | A l i a s | W a v e f r o n t > Information Designer | 210 King St. E. Toronto, ON, Canada M5A 1J7 > [EMAIL PROTECTED] | (416) 874-8268 > | > "A goddamned ray of sunshine all the goddamned time" --Sparkle Hayter > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
