If you look for a nice way to do that have a look at the solr source

http://svn.apache.org/viewvc/incubator/solr/trunk/src/java/org/apache/solr/util/RefCounted.java?view=markup

this is 1.5 source but you can realize that with 1.4 as well ;)

simon

On 6/16/06, Otis Gospodnetic (JIRA) <[EMAIL PROTECTED]> wrote:
    [ 
http://issues.apache.org/jira/browse/LUCENE-604?page=comments#action_12416572 ]

Otis Gospodnetic commented on LUCENE-604:
-----------------------------------------

IW and IS will only get closed if you call close() on them, so you should be 
able to track their status in your application, no?

> do we need a flag to check open status for IndexWriter and IndexSearcher
> ------------------------------------------------------------------------
>
>          Key: LUCENE-604
>          URL: http://issues.apache.org/jira/browse/LUCENE-604
>      Project: Lucene - Java
>         Type: Wish

>     Versions: 2.0.0
>     Reporter: Dedian Guo

>
> since it is recommended to use IndexWriter and IndexSearcher once, I am not 
sure if we need a function such as boolean IsOpen() to check the open status of 
Writer and Searcher.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to