Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 96792 invoked from network); 1 Mar 2010 07:06:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 07:06:06 -0000 Received: (qmail 17448 invoked by uid 500); 28 Feb 2010 09:19:26 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 17400 invoked by uid 500); 28 Feb 2010 09:19:26 -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 17392 invoked by uid 99); 28 Feb 2010 09:19:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 09:19:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 09:19:25 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D3203234C495 for ; Sun, 28 Feb 2010 09:19:05 +0000 (UTC) Message-ID: <171276325.18281267348745863.JavaMail.jira@brutus.apache.org> Date: Sun, 28 Feb 2010 09:19:05 +0000 (UTC) From: "Robert Muir (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-2286) enable DefaultSimilarity.setDiscountOverlaps by default In-Reply-To: <267329602.524531267107927886.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir resolved LUCENE-2286. --------------------------------- Resolution: Fixed Committed revision 917148. > enable DefaultSimilarity.setDiscountOverlaps by default > ------------------------------------------------------- > > Key: LUCENE-2286 > URL: https://issues.apache.org/jira/browse/LUCENE-2286 > Project: Lucene - Java > Issue Type: Improvement > Components: Query/Scoring > Reporter: Robert Muir > Assignee: Robert Muir > Fix For: 3.1 > > Attachments: LUCENE-2286.patch > > > I think we should enable setDiscountOverlaps in DefaultSimilarity by default. > If you are using synonyms or commongrams or a number of other 0-posInc-term-injecting methods, these currently screw up your length normalization. > These terms have a position increment of zero, so they shouldnt count towards the length of the document. > I've done relevance tests with persian showing the difference is significant, and i think its a big trap to anyone using synonyms, etc: your relevance can actually get worse if you don't flip this boolean flag. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org