Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 6706 invoked from network); 7 Jan 2003 16:13:42 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Jan 2003 16:13:42 -0000 Received: (qmail 8984 invoked by uid 97); 7 Jan 2003 16:14:27 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@jakarta.apache.org Received: (qmail 8925 invoked by uid 97); 7 Jan 2003 16:14:26 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 8873 invoked by uid 98); 7 Jan 2003 16:14:25 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <20030107161306.33079.qmail@web12701.mail.yahoo.com> Date: Tue, 7 Jan 2003 08:13:06 -0800 (PST) From: Otis Gospodnetic Subject: Re: RE : Potential Contribution To: Lucene Developers List In-Reply-To: <4FA2184C-2259-11D7-8CE9-003065AB94BC@bookandhammer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N No it is not, but I thought we had decided on supporting 1.2, no? I thought of that before I made the change, but thought that we said 1.2, and that any new code written should use that. Am I mistaken? Could be.... :) Otis --- Peter Carlson wrote: > Otis, > > Is ArrayList backward compatible with Java 1.0 or whatever version > Lucene is trying to be compatible with? > > --Peter > > > On Monday, January 6, 2003, at 06:34 PM, Otis Gospodnetic wrote: > > > Thanks, I've finally added this to Document class. > > I replaced the Vector with (Array)List, but that's about it. > > > > Otis > > > > --- Rasik Pandey wrote: > >> My apologies, the first attachement was an empty file. > >> > >> -----Message d'origine----- > >> De : Rasik Pandey [mailto:rasik.pandey@ajlsm.com] > >> Envoy� : mercredi 9 octobre 2002 17:10 > >> � : lucene-dev@jakarta.apache.org > >> Objet : Potential Contribution > >> > >> > >> Developers, > >> Attached is a diff of Document.java. We added two methods for our > >> needs > >> which return multiple fields for a given field name and and > another > >> which returns multiple values for a given field name. If you find > >> these > >> to be useful for Lucene, would someone please add them to the > >> sources. > >> > >> Rasik > >>> C:\Program Files\GNU\WinCvs 1.2\cvs.exe diff -r 1.3 -w > > Document.java > >> Index: Document.java > >> > =================================================================== > >> RCS file: > >> > > /home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/document/ > > > Document.java,v > >> retrieving revision 1.3 > >> diff -w -r1.3 Document.java > >> 57a58,59 > >>> import java.util.Vector; > >>> > >> 149a152,177 > >>> > >>> public final Field[] getFields(String name) { > >>> Vector tmp = new Vector(); > >>> for (DocumentFieldList list = fieldList; list != null; > list > >> = list.next) > >>> if (list.field.name().equals(name)) > >>> tmp.add(list.field); > >>> int l = tmp.size(); > >>> if (l == 0) > >>> return null; > >>> else { > >>> Field[] fs = new Field[l]; > >>> for (int i = 0; i < l; i++) > >>> fs[i] = (Field) tmp.get(i); > >>> return fs; > >>> } > >>> } > >>> > >>> public final String[] getValues(String name) { > >>> Field[] namedFields = getFields(name); > >>> if (namedFields == null) return null; > >>> String[] values = new String[namedFields.length]; > >>> for (int i = 0; i < namedFields.length; i++) { > >>> values[i] = namedFields[i].stringValue(); > >>> } > >>> return values; > >>> } > >> > >> CVS command finished execution > >> > >>> -- > >> To unsubscribe, e-mail: > >> > >> For additional commands, e-mail: > > > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.com > > > > -- > > To unsubscribe, e-mail: > > > > For additional commands, e-mail: > > > > > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: