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 B73E1D3EC for ; Fri, 7 Sep 2012 21:38:09 +0000 (UTC) Received: (qmail 86111 invoked by uid 500); 7 Sep 2012 21:38:08 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 86035 invoked by uid 500); 7 Sep 2012 21:38:08 -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 86024 invoked by uid 99); 7 Sep 2012 21:38:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 21:38:08 +0000 Date: Sat, 8 Sep 2012 08:38:08 +1100 (NCT) From: "Hoss Man (JIRA)" To: dev@lucene.apache.org Message-ID: <251203447.52455.1347053888389.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (SOLR-523) Solr Schema - version number requirements 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/SOLR-523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-523: -------------------------- Fix Version/s: (was: 4.0) Assignee: Hoss Man removing fixVersion=4.0 because there is no patch, no assignee, and no evidence that anyone is currently working on this issue. asigning to myself to look into later, anyone with an itch to deal with this should not hesitate to take it from me > Solr Schema - version number requirements > ----------------------------------------- > > Key: SOLR-523 > URL: https://issues.apache.org/jira/browse/SOLR-523 > Project: Solr > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Andrew Nagy > Assignee: Hoss Man > Priority: Minor > > When I change the version number of the solr schema from 1.0 or 1.1 to something arbitrary like say 0.8.1 - solr reports a parsing error with the schema - however, a version number "0.8" is accepted. It would be nice if solr reporting an "invalid schema version" error instead or atleast put something in the log that has a bit more detail. > You could add in a check in src/java/org/apache/solr/schema/IndexSchema.java that might look like this: > Node node = (Node) xpath.evaluate("/schema/@version", document, XPathConstants.NODE); > if (!("1.0".equals(node) || "1.1".equals(node))) { > log.warning("invalid schema version - use 1.0 or 1.1 only"); > } > It's quite poor to hardcode the version numbers - but I thought I should include something to give you a more concrete idea of what I am talking about. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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