IndexReaders are "read only" by default ... they obtain a lock on teh index very breifly when they are open to ensure that they get a consistent view of the index, but that lock is then released and the IndexReader ha no further need to lock the index unless you attempt a delete.
: Date: Wed, 30 Aug 2006 17:31:32 +0200 : From: Fredrik Andersson <[EMAIL PROTECTED]> : Reply-To: [email protected] : To: [email protected] : Subject: Forcing an IndexReader to read-only : : Hi guys! : : I don't know if I've missed some crucial feature here, but how d'you : actually force an IndexSearcher (and hence, the underlying IndexReader) to : go read-only? The default behaviour now seems to be that the first one to : acquire a lock automatically gets a read/write-lock, instead of leaving that : optional. What's the deal here? : : Thanks, : Fredrik : -Hoss
