Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BFCFF9CB7 for ; Wed, 14 Mar 2012 16:21:04 +0000 (UTC) Received: (qmail 10498 invoked by uid 500); 14 Mar 2012 16:21:03 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 10416 invoked by uid 500); 14 Mar 2012 16:21:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 10373 invoked by uid 99); 14 Mar 2012 16:21:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 16:21:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 16:21:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DD61620D55 for ; Wed, 14 Mar 2012 16:20:39 +0000 (UTC) Date: Wed, 14 Mar 2012 16:20:39 +0000 (UTC) From: "Hoss Man (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1579272878.13388.1331742039908.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1194435734.9528.1331672921021.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-3241) Document boost fail if a field copy omit the norms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-3241?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13229= 298#comment-13229298 ]=20 Hoss Man commented on SOLR-3241: -------------------------------- patch looks fine ... i wish there was a way to make it easier for poly fiel= ds so they wouldn't have do do the check themselves, but when i tried the i= dea i had it didn't work, so better to go with this for now and maybe refac= tor a helper method later. the few changes i would make: 1) make the new tests grab the IndexSchema obejct and assert that every fie= ld (that the cares about) has the expected omitNorms value -- future proof = ourselves against someone nuetering the test w/o realizing by tweaking the = test schema because they don't know that there is a specific reason for tho= se omitNorm settings 2) add a test that explicitly verifies the failure case of someone setting = field boost on a field with omitNorms=3D=3Dtrue, assert that we get the exp= ected error mesg (doesn't look like this was added when LUCENE-3796 was com= mited, and we want to make sure we don't inadvertantly break that error che= ck) =20 > Document boost fail if a field copy omit the norms > -------------------------------------------------- > > Key: SOLR-3241 > URL: https://issues.apache.org/jira/browse/SOLR-3241 > Project: Solr > Issue Type: Bug > Reporter: Tom=C3=A1s Fern=C3=A1ndez L=C3=B6bbe > Fix For: 3.6, 4.0 > > Attachments: SOLR-3241.patch, SOLR-3241.patch, SOLR-3241.patch, S= OLR-3241.patch > > > After https://issues.apache.org/jira/browse/LUCENE-3796, it is not possib= le to set a boost to a field that has the "omitNorms" set to true. This is = making Solr's document index-time boost to fail when a field that doesn't o= mit norms is copied (with copyField) to a field that does omit them and doc= ument boost is used. For example: > > > > I'm attaching a possible fix. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org