Solr
  1. Solr
  2. SOLR-3824

Velocity: Error messages from search not displayed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 6.0
    • Component/s: Response Writers
    • Labels:
      None

      Description

      Error messages are not displayed in Solritas GUI.

      Example: In SolrCloud mode I have two shards, but shut down shard B. Then there is an error message:

      <lst name="error">
      <str name="msg">no servers hosting shard:</str>
      <int name="code">503</int>
      </lst>
      

      However this is not displayed by Velocity template, it shows an empty search result.

      1. SOLR-3824.patch
        1 kB
        Jan Høydahl

        Activity

        Hide
        Jan Høydahl added a comment -

        First patch, showing any error section in a big red box.

        To test, try e.g.

        http://localhost:8983/solr/collection1/browse?&defType=lucene&q=%22a
        
        Show
        Jan Høydahl added a comment - First patch, showing any error section in a big red box. To test, try e.g. http://localhost:8983/solr/collection1/browse?&defType=lucene&q=%22a
        Hide
        Jan Høydahl added a comment -

        Nice to include this in 4.0 as well since the likelyhood for errors in a sharded env is larger

        Show
        Jan Høydahl added a comment - Nice to include this in 4.0 as well since the likelyhood for errors in a sharded env is larger
        Hide
        Jan Høydahl added a comment -

        Committed to trunk r1383405 and branch_4x r1383412

        Show
        Jan Høydahl added a comment - Committed to trunk r1383405 and branch_4x r1383412
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Jan Høydahl
        http://svn.apache.org/viewvc?view=revision&revision=1383412

        SOLR-3824: Velocity - Error messages from search not displayed (merge from trunk)

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Jan Høydahl http://svn.apache.org/viewvc?view=revision&revision=1383412 SOLR-3824 : Velocity - Error messages from search not displayed (merge from trunk)
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jan Høydahl
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development