From lucene-user-return-2897-qmlist-jakarta-archive-lucene-user=jakarta.apache.org@jakarta.apache.org Wed Nov 06 20:18:35 2002 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 77246 invoked from network); 6 Nov 2002 20:18:29 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Nov 2002 20:18:29 -0000 Received: (qmail 18514 invoked by uid 97); 6 Nov 2002 20:18:42 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 18294 invoked by uid 97); 6 Nov 2002 20:18:39 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 18209 invoked by uid 98); 6 Nov 2002 20:18:38 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "Rob Outar" To: "Lucene Users List" Subject: RE: Several fields with the same name Date: Wed, 6 Nov 2002 15:16:01 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20021106195653.48795.qmail@web12701.mail.yahoo.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Cool, so it will keep getting the last value excluding the one it just fetched? Thanks, Rob -----Original Message----- From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] Sent: Wednesday, November 06, 2002 2:57 PM To: Lucene Users List Subject: Re: Several fields with the same name Looking at the source if looks like you can just call it multiple times until it returns null. Otis --- Rob Outar wrote: > Hello all, > > I have a relationship where for one key there are many values, > basically a > 1 to many relationship. For example with the key = name, value = > bob, jim, > etc.. > > When a client wants all the values that have been associated with > the field > name, how would I get that? The javadoc for Document.get(String > name) > states: > > Returns the string value of the field with the given name if any > exist in > this document, or null. If multiple fields may exist with this > name, this > method returns the last added such added. > > I don't need the last field's value, I need all values associated > with that > field. > > Any help would be appreciated. > > Thanks, > > Rob > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: