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 "Zhang, Lisheng" <Li...@BroadVision.com> on 2009/10/20 19:41:32 UTC

Lucene 1.4.3 "Already closed" IOException

Hi,

We are using lucene 1.4.3, sometimes we encounter an error when creating
Searcher object with IOException: "Already closed".

I searched lucene message archive but did not see conclusive answer, any
help would be very appreciated.

Best regards, Lisheng

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


RE: Lucene 1.4.3 "Already closed" IOException

Posted by "Zhang, Lisheng" <Li...@BroadVision.com>.
Hi Michael and Ian,

Thanks very much for helps, I will investigate and test more.

Best regards, Lisheng

-----Original Message-----
From: Michael McCandless [mailto:lucene@mikemccandless.com]
Sent: Wednesday, October 21, 2009 3:13 AM
To: java-user@lucene.apache.org
Subject: Re: Lucene 1.4.3 "Already closed" IOException


Make sure you are not closing the IndexSearcher while still using a
Hits object obtained from it in the past.  Hits goes back and re-runs
the search if you iterate deep enough...

Mike

On Wed, Oct 21, 2009 at 5:39 AM, Ian Lea <ia...@gmail.com> wrote:
> 1.4.3?  How old is that?  Maybe time to consider an upgrade.
>
> Anyway, if you're getting that exception when creating a searcher I
> guess you are using a constructor that takes an IndexReader and a
> further guess would be that something has closed it.
>
> --
> Ian.
>
>
> On Tue, Oct 20, 2009 at 6:41 PM, Zhang, Lisheng
> <Li...@broadvision.com> wrote:
>> Hi,
>>
>> We are using lucene 1.4.3, sometimes we encounter an error when creating
>> Searcher object with IOException: "Already closed".
>>
>> I searched lucene message archive but did not see conclusive answer, any
>> help would be very appreciated.
>>
>> Best regards, Lisheng
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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


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


Re: Lucene 1.4.3 "Already closed" IOException

Posted by Michael McCandless <lu...@mikemccandless.com>.
Make sure you are not closing the IndexSearcher while still using a
Hits object obtained from it in the past.  Hits goes back and re-runs
the search if you iterate deep enough...

Mike

On Wed, Oct 21, 2009 at 5:39 AM, Ian Lea <ia...@gmail.com> wrote:
> 1.4.3?  How old is that?  Maybe time to consider an upgrade.
>
> Anyway, if you're getting that exception when creating a searcher I
> guess you are using a constructor that takes an IndexReader and a
> further guess would be that something has closed it.
>
> --
> Ian.
>
>
> On Tue, Oct 20, 2009 at 6:41 PM, Zhang, Lisheng
> <Li...@broadvision.com> wrote:
>> Hi,
>>
>> We are using lucene 1.4.3, sometimes we encounter an error when creating
>> Searcher object with IOException: "Already closed".
>>
>> I searched lucene message archive but did not see conclusive answer, any
>> help would be very appreciated.
>>
>> Best regards, Lisheng
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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


Re: Lucene 1.4.3 "Already closed" IOException

Posted by Ian Lea <ia...@gmail.com>.
1.4.3?  How old is that?  Maybe time to consider an upgrade.

Anyway, if you're getting that exception when creating a searcher I
guess you are using a constructor that takes an IndexReader and a
further guess would be that something has closed it.

--
Ian.


On Tue, Oct 20, 2009 at 6:41 PM, Zhang, Lisheng
<Li...@broadvision.com> wrote:
> Hi,
>
> We are using lucene 1.4.3, sometimes we encounter an error when creating
> Searcher object with IOException: "Already closed".
>
> I searched lucene message archive but did not see conclusive answer, any
> help would be very appreciated.
>
> Best regards, Lisheng
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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


RE: Lucene 1.4.3 "Already closed" IOException

Posted by "Zhang, Lisheng" <Li...@BroadVision.com>.
Hi,

We are using lucene 1.4.3, sometimes we encounter an error when creating
Searcher object with IOException: "Already closed".

I searched lucene message archive but did not see conclusive answer, any
help would be very appreciated.

Best regards, Lisheng

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


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