Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 13274 invoked from network); 21 Aug 2007 09:52:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 09:52:29 -0000 Received: (qmail 20563 invoked by uid 500); 21 Aug 2007 09:52:24 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 20539 invoked by uid 500); 21 Aug 2007 09:52:24 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 20530 invoked by uid 99); 21 Aug 2007 09:52:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 02:52:24 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.133.33.40] (HELO smtp.is.nl) (213.133.33.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 09:52:56 +0000 Received: from [213.133.51.241] (HELO hai01.hippo.local) by smtp.is.nl (CommuniGate Pro SMTP 5.0.10) with ESMTP id 22012453 for solr-user@lucene.apache.org; Tue, 21 Aug 2007 11:52:01 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: How to read values of a field efficiently Date: Tue, 21 Aug 2007 11:52:01 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to read values of a field efficiently Thread-Index: Acfj1EYxBJZoJKJPQbeBOYsXm15eBQABBkTw From: "Ard Schrijvers" To: X-Virus-Checked: Checked by ClamAV on apache.org > > you're missing the key piece that Ard alluded to ... the=20 > there is one > > ordere list of all terms stored in the index ... a TermEnum lets you > > iterate over this ordered list, and the=20 > IndexReader.terms(Term) method > > lets you efficiently start at an arbitrary term. if you are only > > interested in terms for a specific field, once your=20 > TermEnum returns a > > differnet field, you can stop -- you will never get any=20 > more terms for > > the field you care about (hence Ard's terms.term().field()=20 > =3D=3D field in his > > loop conditional) > Ok, I wasn't aware of that - I thought that Ards while loop would be > wrong,=20 I am deeply hurt by your distrust. :-)=20 Ard