Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 87964 invoked from network); 19 Aug 2005 03:26:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 03:26:25 -0000 Received: (qmail 1837 invoked by uid 500); 19 Aug 2005 03:26:21 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 1808 invoked by uid 500); 19 Aug 2005 03:26:20 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 1795 invoked by uid 99); 19 Aug 2005 03:26:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 20:26:20 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FROM_ENDS_IN_NUMS,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of chenjian1227@gmail.com designates 64.233.170.203 as permitted sender) Received: from [64.233.170.203] (HELO rproxy.gmail.com) (64.233.170.203) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 20:26:39 -0700 Received: by rproxy.gmail.com with SMTP id 1so126386rny for ; Thu, 18 Aug 2005 20:26:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f345XxM7S7MV2Ta+FDdchGm+jt5HmKf5v5wgCafO1gDhM4gxD8dzPqJ9Ksd998hKpsIDdnNiPdQvNZXDQlMn9I88qD5e7BgNGmAvrGVYhJk39YEhdXAOlSLKDPjfslcv5D9dy7SJZFJt15eJ7KE3nCnpnXRLKyh2r74PskyGQNQ= Received: by 10.38.195.30 with SMTP id s30mr8734rnf; Thu, 18 Aug 2005 20:26:18 -0700 (PDT) Received: by 10.38.8.79 with HTTP; Thu, 18 Aug 2005 20:26:18 -0700 (PDT) Message-ID: <7ca123910508182026399013d3@mail.gmail.com> Date: Thu, 18 Aug 2005 20:26:18 -0700 From: jian chen To: java-user@lucene.apache.org Subject: Re: MySimilarity with Lucene 1.2 ? In-Reply-To: <11479.1124388038@www13.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <11479.1124388038@www13.gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi,=20 I hacked the lucene 1.2 a little while ago and I am trying to use my own similarity algorithm. If you are interested in the changes I have made to the Lucene 1.2, you can email me back at chenjian1227 at gmail.com Cheers, Jian On 8/18/05, Karl Koch wrote: > Hello Lucene experts, >=20 > as you might have seen in my previous postings, I am bound to use not mor= e > than Lucene 1.2 (due to hardware limitations I can only use Java 1.1 or > 1.2). >=20 > I would like to do my own Similarity implementation which, I think, would > allow me to insert other algorithms in Lucene which would enable me to > compare different IR algoritms with Lucene as a framework. I got advice f= rom > here to use DefaultSimiliarity. However, this class was, accoding to the > JavaDoc and the CHANGE text file, only introduced in Lucene 1.3. In Lucen= e > 1.2 it seems to be all hard and solid coded without the intension to have > flexiblility at this point. >=20 > Now some questions: >=20 > 1) Am I wrong here and does somebody know a strategy which could allow me= to > have an enhancement that could allow me to add my own IR similarity > algoritm? >=20 > 2) Does somebody know how to hack the Lucene code in order to make it > happen? I presume some code changes could do that: Either changes in the > Similarity class directly or a change of Similarity to non-final (plus > setters to set new similarities like in Lucene 1.3). >=20 > Any other suggestions? I generally like the small-ness of Lucene 1.2 but = it > is just that I would like to have a little bit more flexiblity at one > point... >=20 > Karl >=20 > -- > Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! > Satte Provisionen f=FCr GMX Partner: http://www.gmx.net/de/go/partner >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org