lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maik Schreiber <blizzy-keyword-lucene_dev.656...@blizzy.de>
Subject Re: DO NOT REPLY [Bug 34995] - Contribution: LuceneIndexAccessor
Date Sun, 22 May 2005 20:56:53 GMT
> Isn't t that already possible without any accessor class (you need to use 
> the same IndexWriter for all your threads)?

Yes, but you also need to keep track of who's using the writer before you
can close it. Additionally, closing a writer yourself doesn't make sure that
cached readers and searchers also get closed. This is a key functionality of
LuceneIndexAccessor - it caches readers, searchers and writers as long as
possible, but closes and reopens them when necessary.

-- 
Maik Schreiber   *   http://www.blizzy.de

GPG public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1F11D713
Key fingerprint: CF19 AFCE 6E3D 5443 9599 18B5 5640 1F11 D713

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message