Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 85508 invoked from network); 13 Apr 2004 21:32:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Apr 2004 21:32:36 -0000 Received: (qmail 40498 invoked by uid 500); 13 Apr 2004 21:31:53 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 40474 invoked by uid 500); 13 Apr 2004 21:31:52 -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 40406 invoked from network); 13 Apr 2004 21:31:52 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.173) by daedalus.apache.org with SMTP; 13 Apr 2004 21:31:52 -0000 Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BDVVe-0007TB-00 for lucene-user@jakarta.apache.org; Tue, 13 Apr 2004 23:31:58 +0200 Received: from [145.254.176.246] (helo=puck.wire.klawitter.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1BDVVe-0006uE-00 for lucene-user@jakarta.apache.org; Tue, 13 Apr 2004 23:31:58 +0200 From: Holger Klawitter To: "Lucene Users List" Subject: Re: Suggestion for Token.java Date: Tue, 13 Apr 2004 23:31:55 +0200 User-Agent: KMail/1.5.4 References: <200404131552.56369.lists@klawitter.de> <22B9E11F-8D77-11D8-97BB-000393A564E6@ehatchersolutions.com> In-Reply-To: <22B9E11F-8D77-11D8-97BB-000393A564E6@ehatchersolutions.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Message-Id: <200404132331.55552.lists@klawitter.de> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c3f09bf0911098d231c83d2978ee4594 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Erik, > What is wrong with simply creating a new token that replaces an > incoming one for synonyms? > I'm just playing devil's advocate here.... since you can already get > the termText() through the public _method_. Well, you're right; I forgot about cloning, but ... (Lords advocate :-) 1.) Cloning implies the need to change filters whenever the fields in Token= =20 change. 2.) In presence of so many "final"s it's quite consistent to avoid creation= of=20 objects in favour of reuse. Mit freundlichem Gru=DF / With kind regards Holger Klawitter =2D -- lists klawitter de =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAfFxL1Xdt0HKSwgYRAkSRAJoDQcdpeGEl6PaqkqLqYSuzOq+DMQCgoUh9 3jbhzhz00QvH4EUiJgVFgus=3D =3D2FEm =2D----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org