SOLR-4702: Added support for multiple spellcheck collations to /browse UI.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1616073 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2014-08-06 01:16:42 +00:00
parent 5dac8551b8
commit b130fbaf28
2 changed files with 7 additions and 3 deletions

View File

@ -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 Components

View File

@ -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