Re: Index Reader Writer - 2 JVMs

2007-10-24 Thread Mark Miller
Lucene does provide locking so that two JVM's can access the same index. Check out the LockFactory to control how this is done. There are a couple advantages of using IndexAccessor: For one you could use a NoLockFactory and avoid Lucene's locking mechanism. Also, you would only need to run one

Index Reader Writer - 2 JVMs

2007-10-24 Thread Dino Korah
Hi All, I have a scenario where there are two processes (2 JVMs) accessing the same index. One of them is doing the indexing as documents arrive into the system and the second one servers search queries. Both the processes are running on the same machine. Is there a need to do some kind of lockin