Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 62425 invoked from network); 4 Apr 2007 13:08:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 13:08:48 -0000 Received: (qmail 36686 invoked by uid 500); 4 Apr 2007 13:08:46 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 36643 invoked by uid 500); 4 Apr 2007 13:08:46 -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 36632 invoked by uid 99); 4 Apr 2007 13:08:46 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [208.97.132.83] (HELO spunkymail-a18.g.dreamhost.com) (208.97.132.83) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 06:08:45 -0700 Received: from [192.168.0.2] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a18.g.dreamhost.com (Postfix) with ESMTP id 640105B534 for ; Wed, 4 Apr 2007 06:07:45 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8240F65E-5924-4161-BFC4-1B357A2D534A@apache.org> Content-Transfer-Encoding: 7bit From: Grant Ingersoll Subject: Re: Field.lazy setter method? Date: Wed, 4 Apr 2007 09:07:45 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org Lazy loading is handled through the FieldSelector interface on IndexReader.doc() and some variations. There is nothing special that need be done during indexing to mark a field as lazy. The isLazy method merely lets you know later, after loading a Document, if the field is, indeed, lazy. One caveat, lazy fields become undefined if the underlying IndexReader is closed before accessing the field. Once a lazy field is loaded, however, this is no longer an issue, as the field value stays in memory. -Grant On Apr 4, 2007, at 8:56 AM, jafarim wrote: > Hi > I wonder why there is not setter method for the "lazy" member > variable in > Field class. Does that mean the propoerty is nominal and setting it > does not > have any effect, or am I missing some point? > Any way, is there any way to tell lucene that a field is to be lazy- > loaded, > from the very beginning of field construction? > > --jaf -------------------------- Grant Ingersoll Center for Natural Language Processing http://www.cnlp.org Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/ LuceneFAQ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org