[ 
https://issues.apache.org/jira/browse/SOLR-5545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Matheis (steffkes) resolved SOLR-5545.
---------------------------------------------

    Resolution: Duplicate

Actually there is already an open issue for that topic: SOLR-1758 .. besides 
that:

{quote}As for schema.xml: because of some design decisions made *way* early on 
in  Solr's lifespan, this is pretty much impossible -- every custom  
TokenFilterFactory or TokenizerFactory is allowed to define whatever attributes 
it wants, so while an XSD could be created to verify if some (incredibly 
simple) schema.xml files are valid, lots of schema.xml files that failed 
validation could be run fine with the proper plugins loaded. {quote}
-- Hossman on 
http://lucene.472066.n3.nabble.com/schema-xml-XSD-DTD-tp778505p780720.html

> Solr should warn if schema.xml has unrecognized tags or typos in tag names
> --------------------------------------------------------------------------
>
>                 Key: SOLR-5545
>                 URL: https://issues.apache.org/jira/browse/SOLR-5545
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.6
>         Environment: OSX 10.9, JDK 1.7.0_25
>            Reporter: Stepan Ovsyankin
>
> If schema.xml contains unknown tags (tag names with typos) but the document 
> is well-formed then Solr starts without letting user know that there are some 
> potential configuration problems. For example, here is schema.xml I had:
> {code:xml}
>     <fieldType name="text_engram_front" class="solr.TextField">
>       <avalyzer type="index">
>         <tokenizer class="solr.StandardTokenizerFactory"/>
>         <filter class="solr.ICUTransformFilterFactory" 
> id="Any-Latin;Latin-ASCII;Lower()"/>
>         <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" 
> maxGramSize="20"/>
>       </avalyzer>
>       <analyzer type="query">
> <!-- skipped -->
>       </analyzer>
>     </fieldType>
> {code}
> Note that index analyzer tag name is written as avalyzer (it's _v_ instead of 
> _n_). Solr would save me several hours if it logged a warning that schema.xml 
> contains unknown tags.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to