Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 39243 invoked from network); 8 Jun 2006 11:12:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2006 11:12:21 -0000 Received: (qmail 69161 invoked by uid 500); 8 Jun 2006 11:12:19 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 68815 invoked by uid 500); 8 Jun 2006 11:12:17 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 68804 invoked by uid 99); 8 Jun 2006 11:12:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2006 04:12:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.228.8.83] (HELO pne-smtpout1-sn2.hy.skanova.net) (81.228.8.83) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2006 04:12:17 -0700 Received: from [192.168.0.102] (83.249.41.244) by pne-smtpout1-sn2.hy.skanova.net (7.2.072.1) id 4487375900026D1D for java-dev@lucene.apache.org; Thu, 8 Jun 2006 13:11:54 +0200 Subject: Edit-distance strategy From: karl wettin To: java-dev@lucene.apache.org Content-Type: text/plain Organization: snigel heavy industries Date: Thu, 08 Jun 2006 13:11:46 +0200 Message-Id: <1149765106.9631.28.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm about to replace the edit-distance algorithm in FuzzyQuery from Levenstein to Hirschberg to save a couple of clockticks. Any thoughts on how to give FuzzyQuery a strategy without changing the API? I can't figure it out and might just replace the algorithm in FuzzyTermEnum to run on Hirschberg instead. The outcome is pretty much the same, so perhaps it is overkill to have the old Levenstein sitting around. But still, it would be nice if it was a setting. But then how do I change the setting from QueryParser and all the other classes that depend on FuzzyQuery as it is now? Perhaps a public static thing? Or is that too ugly? --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org