Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 14816 invoked from network); 18 May 2007 00:54:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 00:54:33 -0000 Received: (qmail 57351 invoked by uid 500); 18 May 2007 00:54:31 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 57071 invoked by uid 500); 18 May 2007 00:54:30 -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 57060 invoked by uid 99); 18 May 2007 00:54:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 17:54:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of deinspanjer@gmail.com designates 66.249.90.177 as permitted sender) Received: from [66.249.90.177] (HELO ik-out-1112.google.com) (66.249.90.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 17:54:23 -0700 Received: by ik-out-1112.google.com with SMTP id b32so420354ika for ; Thu, 17 May 2007 17:54:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KgcKERwSohpJbGZ628vbPearPy+3PHiaLsVU1KWp3BU3otSsj3Mvf9N2fXZTe6Y4EgJFtF4FWGdLJSlqw8Asio+WyaPO7e3DRIM4MsiLlq8ANG/9OVDatmx6xuhAI13hkWgTxMAN7tx9uhXvNqGvojuvWoXSZCsTWC1R55zBuVg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MpbzSnHnKqUBxB3BUsUBU2mEAfW4AT+dVbqvTydh+dewsJ/+LXoptee8N0Y0r6vkxMSRuio0Fu8TVIgVUe0gUpRuEsfSNRq1EWJRackpHxABcot/JR775b/GmpqETa4HjuLHYguYtHd48y4hb8XKf71ghGNqlJVcluvKHDFwb5g= Received: by 10.82.191.3 with SMTP id o3mr1747250buf.1179449642405; Thu, 17 May 2007 17:54:02 -0700 (PDT) Received: by 10.82.119.3 with HTTP; Thu, 17 May 2007 17:54:02 -0700 (PDT) Message-ID: Date: Thu, 17 May 2007 20:54:02 -0400 From: "Daniel Einspanjer" To: java-user@lucene.apache.org Subject: Re: Is it possible to use a custom similarity class to cause extra terms in a field to lower score? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Oops. I do indeed have omitNorms turned on. I will re-read the documentation on it and look at turning it off. Sorry for the bother. :/ On 5/17/07, Chris Hostetter wrote: > > : Terminator 2 > : Terminator 2: Judgment Day > : > : And I score them against the query +title:(Terminator 2) > > : Would there be some method or combination of methods in Similarity > : that I could easily override to allow me to penalize the second item > : because it had "unused terms"? > > that's what the DefaultSimilarity does, it uses the (length)norm > information stored when the documents are indexed to know which one is a > better match (because it matches on a shorter field) > > I you aren'tseeing that behavior then perhaps you turned omitNorms for > that field, or perhaps the byte encoding is making the distinction between > your various terms too small -- overriding the lengthNorm function and > reindexing might help. > > > > -Hoss > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org