You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2014/08/06 03:16:42 UTC

svn commit: r1616073 - in /lucene/dev/trunk/solr: CHANGES.txt example/solr/collection1/conf/velocity/did_you_mean.vm

Author: ehatcher
Date: Wed Aug  6 01:16:42 2014
New Revision: 1616073

URL: http://svn.apache.org/r1616073
Log:
SOLR-4702: Added support for multiple spellcheck collations to /browse UI.

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/example/solr/collection1/conf/velocity/did_you_mean.vm

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1616073&r1=1616072&r2=1616073&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Wed Aug  6 01:16:42 2014
@@ -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

Modified: lucene/dev/trunk/solr/example/solr/collection1/conf/velocity/did_you_mean.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/collection1/conf/velocity/did_you_mean.vm?rev=1616073&r1=1616072&r2=1616073&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/collection1/conf/velocity/did_you_mean.vm (original)
+++ lucene/dev/trunk/solr/example/solr/collection1/conf/velocity/did_you_mean.vm Wed Aug  6 01:16:42 2014
@@ -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