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:18:50 UTC

svn commit: r1616074 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/CHANGES.txt solr/example/ solr/example/solr/collection1/conf/velocity/did_you_mean.vm

Author: ehatcher
Date: Wed Aug  6 01:18:50 2014
New Revision: 1616074

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

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_4x/solr/example/   (props changed)
    lucene/dev/branches/branch_4x/solr/example/solr/collection1/conf/velocity/did_you_mean.vm

Modified: lucene/dev/branches/branch_4x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txt?rev=1616074&r1=1616073&r2=1616074&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/solr/CHANGES.txt Wed Aug  6 01:18:50 2014
@@ -257,6 +257,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/branches/branch_4x/solr/example/solr/collection1/conf/velocity/did_you_mean.vm
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/solr/collection1/conf/velocity/did_you_mean.vm?rev=1616074&r1=1616073&r2=1616074&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/example/solr/collection1/conf/velocity/did_you_mean.vm (original)
+++ lucene/dev/branches/branch_4x/solr/example/solr/collection1/conf/velocity/did_you_mean.vm Wed Aug  6 01:18:50 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