<% unless search_results.nil? %>
<%#= search_results  %>


<ul>
	<% search_results.each_hit_with_result  do |hit,result| %>
		<li> <%= link_to result.parent.title+": " + result.name, document_path(result) %>
			<%  hit.highlights(:name).each do |hlgt| %>
				<%= (hlgt.format{|word|"<b>#{word}</b>" } ).html_safe%>
			<% end 	%>
			<%  %>
			<%  hit.highlights(:text).each do |hlgt| %> 
				<%=  ("<br>text: " + hlgt.format {|word| "<b>#{word}</b>" }).html_safe%> 
			<%  end %>
			<%  hit.highlights(:meeting).each do |hlgt| %>
				<%=  "text:" + (hlgt.format {|word| "*#{word}*" }).html_safe%> 
			<%  end %>

		</li>	
	<% end  %>
</ul>
	<% end  %>
