From java-user-return-52056-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Mon Feb 13 13:34:09 2012 Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E547A9587 for ; Mon, 13 Feb 2012 13:34:08 +0000 (UTC) Received: (qmail 48875 invoked by uid 500); 13 Feb 2012 13:34:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 48827 invoked by uid 500); 13 Feb 2012 13:34:05 -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 48819 invoked by uid 99); 13 Feb 2012 13:34:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 13:34:05 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [93.93.130.6] (HELO balrog.mythic-beasts.com) (93.93.130.6) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2012 13:33:58 +0000 Received: from [92.28.104.152] (helo=[192.168.0.143]) by balrog.mythic-beasts.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Rww2D-0002iT-Ai for java-user@lucene.apache.org; Mon, 13 Feb 2012 13:33:37 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: Re: Overriding SloppySimScorer From: Alan Woodward In-Reply-To: Date: Mon, 13 Feb 2012 13:33:30 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <160F08D2-F813-4E02-93E4-FB1A2696639D@romseysoftware.co.uk> References: <23E221A9-D47A-48DE-8421-07D2E08C7BEE@romseysoftware.co.uk> To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.1251.1) X-BlackCat-Spam-Score: -24 X-Mythic-Debug: Threshold = On = X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.5 On 13 Feb 2012, at 12:16, Robert Muir wrote: > On Mon, Feb 13, 2012 at 6:39 AM, Alan Woodward > wrote: >> Hello, >>=20 >> (I'm not interested in Tf or Idf here) >> I've already extended DefaultSimilarity >=20 > In this case, then extending DefaultSimilarity/TFIDFSimilarity is not > the best approach. Ah yes, the clue's in the name, I suppose. :-) I've extended the base = Similarity class instead, and that works. Thanks for your help. >=20 >> Or should the SimScorer methods on TDIDFSimilarity be unfinalized? >=20 > No, it must be final, because TFIDFSimilarity only exposes its > historical api: tf(), idf(), etc. >=20 >> Am I going about this the wrong way? >=20 > Maybe you should just extend Similarity... >=20 > --=20 > lucidimagination.com >=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