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 A4D919F9A for ; Thu, 31 May 2012 17:40:24 +0000 (UTC) Received: (qmail 58862 invoked by uid 500); 31 May 2012 17:40:23 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 58806 invoked by uid 500); 31 May 2012 17:40:23 -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 58797 invoked by uid 99); 31 May 2012 17:40:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 17:40:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 2349A142857 for ; Thu, 31 May 2012 17:40:23 +0000 (UTC) Date: Thu, 31 May 2012 17:40:23 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <1883822593.22833.1338486023146.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1198973146.20185.1338437485805.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (LUCENE-4096) impossible to CheckIndex if you use norms other than byte[] 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-4096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir resolved LUCENE-4096. --------------------------------- Resolution: Fixed Fix Version/s: 5.0 > impossible to CheckIndex if you use norms other than byte[] > ----------------------------------------------------------- > > Key: LUCENE-4096 > URL: https://issues.apache.org/jira/browse/LUCENE-4096 > Project: Lucene - Java > Issue Type: Task > Components: core/index > Affects Versions: 4.0 > Reporter: Robert Muir > Fix For: 4.0, 5.0 > > Attachments: LUCENE-4096.patch > > > I noticed TestCustomNorms had the checkIndexOnClose disabled, but > I think this is a real problem. > If someone wants to use e.g. float[] norms, they should be able to run > CheckIndex. > CheckIndex is fine with validating any norm type, the problem is that it sometimes creates an IndexSearcher and fires off TermQueries for some calculations. This causes it to (wrongly) fail, because DefaultSimilarity expects single byte norms. > I don't think CheckIndex needs to use TermQuery here, we can do this differently so it doesnt use IndexSearcher or TermQuery but just the postings apis. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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