Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 38343 invoked from network); 16 Jun 2006 19:16:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2006 19:16:12 -0000 Received: (qmail 22762 invoked by uid 500); 16 Jun 2006 19:16:06 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 22728 invoked by uid 500); 16 Jun 2006 19:16:05 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 22717 invoked by uid 99); 16 Jun 2006 19:16:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 12:16:05 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of simon.willnauer@googlemail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 12:16:03 -0700 Received: by ug-out-1314.google.com with SMTP id u2so1657292uge for ; Fri, 16 Jun 2006 12:15:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YMFJWFWChBvQPe7a/g+hd4FKjR8tfs/rfCE4b4qjBal7jhmwg1ebU8jf2pXgECZwJTk8umsiI63+2NIo/kshDH2rkFPy67+1t2xZcp/crzFYzzPZpxDGGq7Fc8s7QzP6qePe/MuXrOHigVBVe2+HszAtzZetiQ1SnY+GTMC3IY0= Received: by 10.67.89.6 with SMTP id r6mr3034900ugl; Fri, 16 Jun 2006 12:15:41 -0700 (PDT) Received: by 10.66.236.1 with HTTP; Fri, 16 Jun 2006 12:15:41 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2006 21:15:41 +0200 From: "Simon Willnauer" Reply-To: simon.willnauer@gmail.com To: java-dev@lucene.apache.org Subject: Re: [jira] Commented: (LUCENE-604) do we need a flag to check open status for IndexWriter and IndexSearcher In-Reply-To: <19165631.1150484850308.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7319831.1150481549766.JavaMail.jira@brutus> <19165631.1150484850308.JavaMail.jira@brutus> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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) 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