Changesets can be listed by changeset number.
The Git repository is here.
Changeset 82
Improved the Search display, including some instructions on how
it works and a description of why it doesn't!
- Comitted by: adh
- Date: Wednesday August 09 00:39:20 2006 (over 18 years ago)
Affected files:
- rool/rails/rforum/trunk/app/views/forum/search.rhtml (diff)
- rool/rails/rforum/trunk/lang/en.yaml (diff)
rool/rails/rforum/trunk/app/views/forum/search.rhtml:
prev. | current | |
<% else %> | ||
<!-- Search form --> | ||
<form action="<%= url_for() %>"> | ||
9 | | |
9 | <table border="0" cellspacing="0" cellpadding="0" align="left" style="padding-right: 10px; margin-right: 10px; border-right: 1px solid #e5ffd4"> | |
10 | <tr valign="top" align="left"> | |
11 | <th><label><%=h l(:search_for) %></label></th> | |
12 | <th> </th> | |
13 | <th><label><%=h l(:search_in_forums) %></label></th> | |
14 | </tr> | |
15 | <tr valign="top" align="left"> | |
16 | <td><input type="text" name="query" value="<%=h @query %>" /></td> | |
17 | <td rowspan="2"> </td> | |
18 | <td rowspan="2"> | |
19 | <select name="forums[]" size="<%= [5, @forums.size].min %>" multiple="multiple"> | |
20 | <%= options_from_collection_for_select(@forums, :id, :name, @selected_forums) %> | |
21 | </select> | |
22 | </td> | |
23 | </tr> | |
24 | <tr valign="bottom" align="left"> | |
25 | <td><input type="submit" value="Go!" /></td> | |
26 | </tr> | |
27 | </table> | |
11 | | |
12 | | |
13 | | |
14 | | |
15 | | |
16 | | |
17 | | |
18 | | |
19 | | |
29 | <p /> | |
30 | <%=h l(:search_help_1) %> | |
31 | <%=h l(:search_help_2) %> | |
32 | ||
</form> | ||
<% end %> | ||
</div> | ||
36 | ||
37 | <p /> | |
38 | The search engine is called Ferret, which is a Ruby version of an engine | |
39 | called Lucene. To find out more about the query syntax, see the Lucene | |
40 | documentation held on | |
41 | <a href="http://lucene.apache.org/java/docs/queryparsersyntax.html">this | |
42 | page</a>. | |
43 | ||
44 | <p /> | |
45 | <em><strong>Please note:</strong></em> | |
46 | There are still a few bugs in the forum search engine at the | |
47 | moment. Queries that return a great many results will tend to say that | |
48 | nothing could be found, so avoid including common words like "and", | |
49 | "the" or "this" unless as part of a wider, explicit phrase. If you try | |
50 | to search more than one forum at a time the engine usually finds | |
51 | nothing at all, so restrict searches to one forum for better results. | |
<% if @results %> | ||
<!-- Query submitted --> | ||
55 | ||
56 | <br clear="all" /> | |
57 | <h4>Search results:</h4> | |
58 | ||
59 | <p /> | |
<div class="box search_results"> | ||
<% if @results.size == 0 %> | ||
<%=h l(:search_no_result) %> | ||
<% else %> | ||
30 | | |
<table class="searchresults"> | ||
<% @results.each do |result| %> | ||
33 | | |
66 | <tr valign="top"> | |
<td class="subject"><%= link_to h(result.subject), :controller => 'topic', :action => 'show', :id => result.topic_id, :anchor => result.id %></td> | ||
<td class="text"> | ||
<%= searchresult_text_excerpt(result.text, @query) %> |
rool/rails/rforum/trunk/lang/en.yaml:
prev. | current | |
no_users_registered: No users registered. | ||
no_forums_to_search: There are no forums to search. | ||
119 | ||
119 | search_for: "Search for:" | |
120 | search_in_forums: "Search in:" | |
121 | search_help_1: "Whole words will be matched against your search query. To match partial words, use '*' as a wildcard." | |
122 | search_help_2: "Hold the Control or Command key to select multiple forums from the list." | |
search_no_result: Nothing found. | ||
create_forum_title: Create Forum |