Apache Solr open-source search software
SOLR-4702: Added support for multiple spellcheck collations to /browse UI.
Erik Hatcherb130fbaf28d2
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 5f9c7a5eb52..e9c1814c63e 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -326,6 +326,8 @@ Other Changes* SOLR-2168: Added support for facet.missing in /browse field and pivot faceting. (ehatcher)+* SOLR-4702: Added support for multiple spellcheck collations to /browse UI. (ehatcher)+================== 4.9.0 ==================Versions of Major Componentsdiff --git a/solr/example/solr/collection1/conf/velocity/did_you_mean.vm b/solr/example/solr/collection1/conf/velocity/did_you_mean.vmindex b8faaa52212..ef2485352a5 100644--- a/solr/example/solr/collection1/conf/velocity/did_you_mean.vm+++ b/solr/example/solr/collection1/conf/velocity/did_you_mean.vm@@ -2,8 +2,10 @@* Hyperlinked spelling suggestions in results list*#-#set($dym = $response.response.spellcheck.suggestions.collation.collationQuery)-#if($dym)+#set($collations = $response.response.spellcheck.suggestions.getAll("collation"))+#if($collations.size() > 0)Did you mean- <a href="#{url_for_home}#{lensNoQ}&q=$esc.url($dym)">$esc.html($dym)</a>?+ #foreach($collation in $collations)+ <a href="#{url_for_home}#{lensNoQ}&q=$esc.url($collation.collationQuery)">$esc.html($collation.collationQuery)</a> ($collation.hits)?+ #end#end