Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 14379 invoked from network); 22 Sep 2009 05:05:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Sep 2009 05:05:59 -0000 Received: (qmail 6223 invoked by uid 500); 22 Sep 2009 05:05:58 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 6156 invoked by uid 500); 22 Sep 2009 05:05:58 -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 6148 invoked by uid 99); 22 Sep 2009 05:05:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 05:05:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 209.85.219.219 as permitted sender) Received: from [209.85.219.219] (HELO mail-ew0-f219.google.com) (209.85.219.219) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Sep 2009 05:05:49 +0000 Received: by ewy19 with SMTP id 19so743950ewy.28 for ; Mon, 21 Sep 2009 22:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=hqdDYEZBdCtm1eBqRJgh7loP56jdABLZxpfIsAvUBGk=; b=VN2rSJaflOWeLt1+RTHuoS300818kRDCTwVcUjrfWqQQPRQcsW48vQqIzgzGFAzPIJ sJSGAJ2GotfJjdBRhiFEGbiECPIet1eK61EMjV9Ec6jOeeGwfHn1K/UWPgMus9rv2EXU 0uFb5FHZ+BDo7EctPD1Lp+5qIdKrft4ZGgOsI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=ImczRYsnybHSwiHoDXvJgZ9UvbkXwEyReC4l0Fr41pmHVz9oaIiYNVAtc6ymjPKOpn Z4jp9L5cv+oMh01LfMViOIBHnX1wWcE6r2Xv7Cq+2sj6gYK+oDDCCPpOoLQFCETwkvfW Fl/2fKaMJzjCgAKz4H6b5bhNakjEZwCxj9M4k= MIME-Version: 1.0 Sender: yseeley@gmail.com Reply-To: yonik@lucidimagination.com Received: by 10.216.71.133 with SMTP id r5mr127935wed.180.1253595927795; Mon, 21 Sep 2009 22:05:27 -0700 (PDT) In-Reply-To: <8837fb770909212156s13645f84tbee15ee3bd2d5aef@mail.gmail.com> References: <8837fb770909212156s13645f84tbee15ee3bd2d5aef@mail.gmail.com> Date: Tue, 22 Sep 2009 01:05:27 -0400 X-Google-Sender-Auth: c9f7d4515d688fb6 Message-ID: Subject: Re: 2.9 NRT w.r.t. sorting and field cache From: Yonik Seeley To: java-dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 22, 2009 at 12:56 AM, John Wang wrote: > Looking at the code, seems there is a disconnect between how/when field > cache is loaded when IndexWriter.getReader() is called. I'm not sure what you mean by "disconnect" > Is FieldCache updated? FieldCache entries are populated on demand, as they always have been. > Otherwise, are we reloading FieldCache for each > reader instance? Searching/sorting is now per-segment, and so is the use of the FieldCache. Segments that don't change shouldn't have to reload their FieldCache entries. -Yonik http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org