Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 59094 invoked from network); 9 Jun 2006 16:04:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jun 2006 16:04:39 -0000 Received: (qmail 74702 invoked by uid 500); 9 Jun 2006 16:04:33 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 74667 invoked by uid 500); 9 Jun 2006 16:04:32 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 74656 invoked by uid 99); 9 Jun 2006 16:04:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2006 09:04:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [149.28.9.26] (HELO newman.ridge.aps.org) (149.28.9.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2006 09:04:31 -0700 Received: from [149.28.3.20] (duval.ridge.aps.org [149.28.3.20]) by newman.ridge.aps.org (8.13.6/8.13.1) with ESMTP id k59G4Dum033170 for ; Fri, 9 Jun 2006 12:04:13 -0400 (EDT) Message-ID: <44899BFA.3010100@aps.org> Date: Fri, 09 Jun 2006 12:04:10 -0400 From: Michael Duval User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) MIME-Version: 1.0 To: Java-user@lucene.apache.org Subject: COMMIT_LOCK_TIMEOUT - IndexSearcher/IndexReader Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi All, Has anyone else out there come across the shortcomings of the new COMMIT_LOCK_TIMEOUT in regards to searching on an actively updated Index? It used to be a settable system property and therefor "semi" dynamic across a system with multiple readers/searchers and one writer. I am aware now that it has access methods for IndexWriter instances, however, IndexSearcher/Readers that indirectly need to access the commit lock (to read it's segments) use the final static COMMIT_LOCK_TIMEOUT in IndexWriter. There is no way of waiting longer or shorter than the default (10000) milliseconds. Perhaps there should be another constructor in IndexSearcher/Reader that takes commit lock settings allowing for dynamic blocking based on a particular implementation's needs. Any thoughts on this? Thanks, Michael R. Duval Senior Programmer/Analyst American Physical Society (631) 591-4127 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org