Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5545

Solr should warn if schema.xml has unrecognized tags or typos in tag names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      OSX 10.9, JDK 1.7.0_25

      Description

      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:

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

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stepan_ovsyankin Stepan Ovsyankin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: