Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

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

Erik Hatcher69b9438a44c0
diff --git a/client/ruby/flare/app/views/browse/_suggest.rhtml b/client/ruby/flare/app/views/browse/_suggest.rhtml
index 404fc4e1c02..1d49a86a5b2 100755
--- a/client/ruby/flare/app/views/browse/_suggest.rhtml
+++ b/client/ruby/flare/app/views/browse/_suggest.rhtml
@@ -1,9 +1,11 @@
<ul class="cookies">
<%
@values.each do |value|
-%>
+ if value[1] > 0
+-%>
<li class="cookie"><span class="informal">&nbsp;</span><%=value[0]%><span class="informal"> (<%=value[1]%>)<br/></span></li>
<%
+ end
end
-%>
+-%>
</ul>
\ No newline at end of file