Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 65548 invoked from network); 3 May 2007 19:29:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 May 2007 19:29:50 -0000 Received: (qmail 74398 invoked by uid 500); 3 May 2007 19:29:42 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 74347 invoked by uid 500); 3 May 2007 19:29:42 -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 74326 invoked by uid 99); 3 May 2007 19:29:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2007 12:29:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2007 12:29:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54F8E71403B for ; Thu, 3 May 2007 12:29:15 -0700 (PDT) Message-ID: <30722039.1178220555328.JavaMail.jira@brutus> Date: Thu, 3 May 2007 12:29:15 -0700 (PDT) From: "Karl Wettin (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-874) Automatic reopen of IndexSearcher/IndexReader In-Reply-To: <6465604.1178212335620.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-874?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493470 ]=20 Karl Wettin commented on LUCENE-874: ------------------------------------ LUCENE-550 contains NotifiableIndex that by decoration keeps track of whats= going on in a index. It comes with AutofreshedReader and AutofreshedSearch= er, active hit collection cache et c. Perhaps that works for you? Java 1.5 > Automatic reopen of IndexSearcher/IndexReader > --------------------------------------------- > > Key: LUCENE-874 > URL: https://issues.apache.org/jira/browse/LUCENE-874 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Reporter: Jo=C3=A3o Fonseca > Priority: Minor > > To improve performance, a single instance of IndexSearcher should be used= . However, if the index is updated, it's hard to close/reopen it, because m= ultiple threads may be accessing it at the same time. > Lucene should include an out-of-the-box solution to this problem. Either = a new class should be implemented to manage this behaviour (singleton Index= Searcher, plus detection of a modified index, plus safely closing and reope= ning the IndexSearcher) or this could be behind the scenes by the IndexSear= cher class. --=20 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