Apache Solr open-source search software
SOLR-3824: Velocity - Error messages from search not displayed
Jan Høydahl5743ddef9b69
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 0d232970948..fced1988785 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -178,6 +178,8 @@ Other Changesrunning the leader sync process so that we are sure every node participates.(Per Steffensen, Mark Miller)+* SOLR-3824: Velocity: Error messages from search not displayed (janhoy)+================== 4.0.0-BETA ===================diff --git a/solr/example/solr/collection1/conf/velocity/browse.vm b/solr/example/solr/collection1/conf/velocity/browse.vmindex d7c3c435215..b31df9be3ae 100644--- a/solr/example/solr/collection1/conf/velocity/browse.vm+++ b/solr/example/solr/collection1/conf/velocity/browse.vm@@ -20,6 +20,13 @@class="page-count">$page.page_count</span>#end</div>+<div class="error">+ #if(${response.response.error.code})+ <h1>ERROR ${response.response.error.code}</h1>+ ${response.response.error.msg}+ #end+</div>+<div class="results">#if($response.response.get('grouped'))#foreach($grouping in $response.response.get('grouped'))diff --git a/solr/example/solr/collection1/conf/velocity/main.css b/solr/example/solr/collection1/conf/velocity/main.cssindex efc56808fb8..695e0c03f59 100644--- a/solr/example/solr/collection1/conf/velocity/main.css+++ b/solr/example/solr/collection1/conf/velocity/main.css@@ -196,4 +196,13 @@ li.show {.group-value{font-weight: bold;-}\ No newline at end of file+}++.error {+ color: white;+ background-color: red;+ left: 210px;+ width:80%;+ position: relative;++}