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 CB768674D for ; Thu, 26 May 2011 09:39:31 +0000 (UTC) Received: (qmail 72030 invoked by uid 500); 26 May 2011 09:39:30 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 71972 invoked by uid 500); 26 May 2011 09:39:30 -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 71965 invoked by uid 99); 26 May 2011 09:39:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2011 09:39:30 +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; Thu, 26 May 2011 09:39:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6EDA3E0E2A for ; Thu, 26 May 2011 09:38:47 +0000 (UTC) Date: Thu, 26 May 2011 09:38:47 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <839067048.44888.1306402727450.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1117064883.44774.1306399907337.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3146) IndexReader.setNorms is no op if one of the field instances omits norms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039611#comment-13039611 ] Michael McCandless commented on LUCENE-3146: -------------------------------------------- I think this behavior, while spooky, is correct. LUCENE-2846 flipped the norms merging behavior so that omitNorm now "spreads", in 4.0 (not 3.x). But the javadoc in Field.NOT_ANALYZED_NO_NORMS needs to be fixed, on trunk. I think, also, SegmentReader.doSetNorm should throw an exc if you attempt to set norm on a field that does not have norms... it's bad that we silently ignore that... makes the app think the call succeeded when in fact nothing happened. > IndexReader.setNorms is no op if one of the field instances omits norms > ----------------------------------------------------------------------- > > Key: LUCENE-3146 > URL: https://issues.apache.org/jira/browse/LUCENE-3146 > Project: Lucene - Java > Issue Type: Bug > Components: core/search > Reporter: Shai Erera > Fix For: 4.0 > > Attachments: LUCENE-3146.patch > > > If I add two documents to an index w/ same field, and one of them omit norms, then IndexReader.setNorms is no-op. I'll attach a patch w/ test case -- This message is automatically generated by JIRA. 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