Solr
  1. Solr
  2. SOLR-528

Given but undefined default search field in schema.xml causes cryptic error message

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Tomcat 5.5

      Description

      When a default search field is given in schema.xml but the field itself is not defined, a generic SolrException with the message "Schema parsing failed" is thrown. Only further down in the stacktrace the message "unknown field 'foobar'" appears (and does not indicate where the unknown field is referenced).

        Issue Links

          Activity

          Hide
          Lars Kotthoff added a comment -

          Patch to create a more specific error message, i.e. "default search field 'foobar' not defined or not indexed" when raising the SolrException.

          Show
          Lars Kotthoff added a comment - Patch to create a more specific error message, i.e. "default search field 'foobar' not defined or not indexed" when raising the SolrException.
          Hide
          Hoss Man added a comment -

          Thanks Lars...

          Committed revision 646135.

          Show
          Hoss Man added a comment - Thanks Lars... Committed revision 646135.

            People

            • Assignee:
              Hoss Man
              Reporter:
              Lars Kotthoff
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development