From 964e47e351718cfd6c8faf24099e1d1041224689 Mon Sep 17 00:00:00 2001 From: Brendan Early Date: Nov 09 2020 13:52:58 +0000 Subject: create search results template --- diff --git a/solr/schema.xml b/solr/schema.xml index 1a7171c..42c8660 100644 --- a/solr/schema.xml +++ b/solr/schema.xml @@ -10,7 +10,7 @@ - + @@ -21,28 +21,28 @@ - + - + + - + - + - + - + - + --> diff --git a/solr/solrconfig.xml b/solr/solrconfig.xml index eb9b5fa..0fc3f8b 100644 --- a/solr/solrconfig.xml +++ b/solr/solrconfig.xml @@ -703,6 +703,7 @@ 10 true default + true @@ -834,7 +835,7 @@ --> - + nameText + + {% if results.spellcheck.collations[1] %} +
+

Did you mean + + {{results.spellcheck.collations[1]}}? +

+
+ {% elif results.response.numfound == 0 %} +
+

No results found!

+
+ {% endif %} + + {% for result in results.response.docs %} +
+ +

{{ result.name }}

+
+

{{ result.description }}

+
+ {% endfor %} + + diff --git a/templates/sitemap-index.xml.j2 b/templates/sitemap-index.xml.j2 index 7ee5b7c..97a0125 100644 --- a/templates/sitemap-index.xml.j2 +++ b/templates/sitemap-index.xml.j2 @@ -4,5 +4,5 @@ {{ url ~ sitemap }} - {% endfor %} + {% endfor %}