Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 44689 invoked from network); 11 Aug 2006 18:39:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 18:39:30 -0000 Received: (qmail 28700 invoked by uid 500); 11 Aug 2006 18:39:24 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 28672 invoked by uid 500); 11 Aug 2006 18:39:24 -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 28661 invoked by uid 99); 11 Aug 2006 18:39:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 11:39:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 11:39:24 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id F306B5B774; Fri, 11 Aug 2006 11:39:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id EEDE37F403 for ; Fri, 11 Aug 2006 11:39:03 -0700 (PDT) Date: Fri, 11 Aug 2006 11:39:03 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Poor performance "race condition" in FieldSortedHitQueue In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N : ... right, thanks, now I see what you mean. In other words, IndexReader : provides the ability to read/iterate terms and docs, but caching the term : values per doc is for a higher layer - this way keeping IndexReader simpler : and maintainable. So I guess Oliver can continue with the change as he : proposed it. if any "heavy" changes were to be made to the way FieldCaches refrences are handled (ie; being able to specify which FieldCacheImpl you want to use) it would make more sense to put that in the Searcher API ... but even then it might make sense to use a WeakHashRef on the IndexReader since multiple IndexSearchers can refrence the same IndexReader. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org