lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Forcing an IndexReader to read-only
Date Wed, 30 Aug 2006 18:35:11 GMT

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 <fidde.andersson@gmail.com>
: Reply-To: general@lucene.apache.org
: To: general@lucene.apache.org
: 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


Mime
View raw message