Re: How to LOCK the index-dir for changes from the IndexWriter

2010-06-18 Thread Alexander Rothenberg
Thx for the reply. I tried those lock-methods already but still cant it get to work. Heres what i did in my RequestHandler at least. Type "Directory" and all Lock stuff comes from org.apache.lucene.store.* and the copyFiles method is the same as for the replication-RequestHandler. I still nev

Re: How to LOCK the index-dir for changes from the IndexWriter

2010-06-18 Thread Otis Gospodnetic
Alex, For something like that you may just want to directly use one of the Lucene lock classes to create a lock: http://search-lucene.com/?q=lock&fc_project=Lucene&fc_type=source+code e.g. http://search-lucene.com/c/Lucene:/src/java/org/apache/lucene/store/SingleInstanceLockFactory.java||makeLo