lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Updated] (SOLR-523) Solr Schema - version number requirements
Date Fri, 07 Sep 2012 21:38:08 GMT


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:
>             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/ 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message