<% if @forums.empty? %> <%=h l(:no_forums_to_search) %> <% else %>
 
 

<%=h l(:search_help_1) %> <%=h l(:search_help_2) %>

<% end %>

The search engine is called Ferret, which is a Ruby version of an engine called Lucene. To find out more about the query syntax, see the Lucene documentation held on this page.

Please note: There are still a few bugs in the forum search engine at the moment. Queries that return a great many results will tend to say that nothing could be found, so avoid including common words like "and", "the" or "this" unless as part of a wider, explicit phrase. If you try to search more than one forum at a time the engine usually finds nothing at all, so restrict searches to one forum for better results. <% if @results %>

Search results:

<% if @results.size == 0 %> <%=h l(:search_no_result) %> <% else %> <% @results.each do |result| %> <% end %>
<%= link_to h(result.subject), :controller => 'topic', :action => 'show', :id => result.topic_id, :anchor => result.id %> <%= searchresult_text_excerpt(result.text, @query) %>
<% end %>
<% else %> <% end %>