lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <>
Subject Re: Lucene shouldn't use
Date Thu, 08 Jul 2004 19:17:43 GMT
Otis Gospodnetic wrote:

>Hey Kevin,
>Not sure if you're aware of it, but you can specify the lock dir, so in
>your example, both JVMs could use the exact same lock dir, as long as
>you invoke the VMs with the same params.  
Most people won't do this or won't even understand WHY they need to do 
this :-/.

>You shouldn't be writing the
>same index with more than 1 IndexWriter though (not sure if this was
>just a bad example or a real scenario).
Yes... I realize that you shouldn't use more than one IndexWriter. That 
was the point. The locks are to prevent this from happening. If one were 
to accidentally do this the locks would be in different directories and 
our IndexWriter would corrupt the index.

This is why I think it makes more sense to use our own to 
be on the safe side.


Please reply using PGP.    
    NewsMonster -
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
       AIM/YIM - sfburtonator,  Web -
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
  IRC - #infoanarchy | #p2p-hackers | #newsmonster

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message