You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Otis Gospodnetic (JIRA)" <ji...@apache.org> on 2006/06/16 21:07:30 UTC
[jira] Commented: (LUCENE-604) do we need a flag to check open
status for IndexWriter and IndexSearcher
[ 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
Re: [jira] Commented: (LUCENE-604) do we need a flag to check open status for IndexWriter and IndexSearcher
Posted by Simon Willnauer <si...@googlemail.com>.
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) <ji...@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