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 49C4B912F for ; Tue, 3 Apr 2012 03:13:26 +0000 (UTC) Received: (qmail 58649 invoked by uid 500); 3 Apr 2012 03:13:24 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 58507 invoked by uid 500); 3 Apr 2012 03:13:24 -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 58447 invoked by uid 99); 3 Apr 2012 03:13:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 03:13:22 +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; Tue, 03 Apr 2012 03:13:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6BEE0355C6A for ; Tue, 3 Apr 2012 03:13:01 +0000 (UTC) Date: Tue, 3 Apr 2012 03:13:01 +0000 (UTC) From: "Mike Sokolov (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1305803412.4570.1333422781552.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-1758) schema definition for configuration files (validation, XSD) 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/SOLR-1758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244933#comment-13244933 ] Mike Sokolov commented on SOLR-1758: ------------------------------------ I updated the patch so it works with the new file layout in trunk (all solr test now pass for me), put the schemas on the classpath, added declarations to the eclipse (tested) and IDEA (untested) configs, added a version-check so we only validate config marked as LUCENE_40 or LUCENE_CURRENT, and added a couple of new tests related to these changes. I don't have the knowledge to create schemas for all the 3.x versions that would be meaningfully different. A possible approach there could be simply to use the same schema and make the version check looser. The only change I made (since a year ago) to the config.rnc was to allow a few new options, so I think that would be reasonable given the level of strictness (not very) we can impose here. As long as future schema file changes are additive, you might actually not need to create new versions? I haven't tested WAR packaging - will the ant rules just pick up files in solr/core/src/resources? Please note - there is not a separate schema for solrconfig.xml and schema.xml; one schema applies to both (and also to a few other random config file types). > schema definition for configuration files (validation, XSD) > ----------------------------------------------------------- > > Key: SOLR-1758 > URL: https://issues.apache.org/jira/browse/SOLR-1758 > Project: Solr > Issue Type: New Feature > Reporter: Jorg Heymans > Labels: configuration, schema.xml, solrconfig.xml, validation, xsd > Fix For: 4.0 > > Attachments: config-validation-20110523.patch, config-validation-20120402.patch > > > It is too easy to make configuration errors in Solr without getting warnings. We should explore ways of validation configurations. See mailing list discussion at http://search-lucene.com/m/h6xKf1EShE6 -- 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