You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/02/26 03:51:56 UTC
svn commit: r511705 -
/lucene/solr/trunk/client/ruby/flare/app/views/browse/_suggest.rhtml
Author: ehatcher
Date: Sun Feb 25 18:51:55 2007
New Revision: 511705
URL: http://svn.apache.org/viewvc?view=rev&rev=511705
Log:
fix issue with empty suggest item - it was the count of all objects that do _not_ have a term (facet.missing) in the text field. ultimately the request made to Solr should not request for missing values on suggest lookups
Modified:
lucene/solr/trunk/client/ruby/flare/app/views/browse/_suggest.rhtml
Modified: lucene/solr/trunk/client/ruby/flare/app/views/browse/_suggest.rhtml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/flare/app/views/browse/_suggest.rhtml?view=diff&rev=511705&r1=511704&r2=511705
==============================================================================
--- lucene/solr/trunk/client/ruby/flare/app/views/browse/_suggest.rhtml (original)
+++ lucene/solr/trunk/client/ruby/flare/app/views/browse/_suggest.rhtml Sun Feb 25 18:51:55 2007
@@ -1,9 +1,11 @@
<ul class="cookies">
<%
@values.each do |value|
-%>
+ if value[1] > 0
+-%>
<li class="cookie"><span class="informal"> </span><%=value[0]%><span class="informal"> (<%=value[1]%>)<br/></span></li>
<%
+ end
end
-%>
+-%>
</ul>