lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer" <simon.willna...@googlemail.com>
Subject Re: [jira] Commented: (LUCENE-604) do we need a flag to check open status for IndexWriter and IndexSearcher
Date Fri, 16 Jun 2006 19:15:41 GMT
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) <jira@apache.org> 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: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

---------------------------------------------------------------------
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