You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dedian Guo (JIRA)" <ji...@apache.org> on 2006/06/16 20:12:29 UTC
[jira] Created: (LUCENE-604) do we need a flag to check open status
for IndexWriter and IndexSearcher
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
[jira] Closed: (LUCENE-604) do we need a flag to check open status
for IndexWriter and IndexSearcher
Posted by "Michael Busch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Busch closed LUCENE-604.
--------------------------------
Resolution: Won't Fix
As Otis commented, it is possible to track the state of a reader/searcher without having an isOpen() method. No updates for almost a year here.
> do we need a flag to check open status for IndexWriter and IndexSearcher
> ------------------------------------------------------------------------
>
> Key: LUCENE-604
> URL: https://issues.apache.org/jira/browse/LUCENE-604
> Project: Lucene - Java
> Issue Type: Wish
> Affects 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-604) do we need a flag to check open
status for IndexWriter and IndexSearcher
Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
[ 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