You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Yogesh Dabhi <yd...@asite.com> on 2011/04/01 15:14:27 UTC
org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
Hi
Concurrently 5 user access same lucene directory for searching document
That time I got bellow exception
org.apache.lucene.store.AlreadyClosedException: this IndexReader is
closed
is there a way to handle such error
Thanks & Regards
Yogesh
RE: org.apache.lucene.store.AlreadyClosedException: this IndexReader is closed
Posted by Yogesh Dabhi <yd...@asite.com>.
Hi,
My application is cluster in jobss application servers & lucene
directory was shared.
Is it work ReentrantReaderWriterLock around the process of re-opening
your
IndexReader and re-creating your IndexSearcher in given environment or
Is there any alternate way for it
Please reply
Thanks & Regards
Yogesh
From: Yogesh Dabhi
Sent: Friday, April 01, 2011 6:44 PM
To: 'java-user@lucene.apache.org'
Subject: org.apache.lucene.store.AlreadyClosedException: this
IndexReader is closed
Hi
Concurrently 5 user access same lucene directory for searching document
That time I got bellow exception
org.apache.lucene.store.AlreadyClosedException: this IndexReader is
closed
is there a way to handle such error
Thanks & Regards
Yogesh
Re: org.apache.lucene.store.AlreadyClosedException: this IndexReader
is closed
Posted by "Devon H. O'Dell" <de...@gmail.com>.
2011/4/1 Yogesh Dabhi <yd...@asite.com>:
> Hi
>
> Concurrently 5 user access same lucene directory for searching document
>
> That time I got bellow exception
>
> org.apache.lucene.store.AlreadyClosedException: this IndexReader is
> closed
>
> is there a way to handle such error
Use a ReentrantReaderWriterLock around the process of re-opening your
IndexReader and re-creating your IndexSearcher (or closing your
reader, if that's all you're doing), and the process of using your
IndexSearcher for searching.
--dho
> Thanks & Regards
>
> Yogesh
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org