RedmineSearch » History » Version 5
James Rowe, 2010-11-08 21:48
searching cleanup
1 | 1 | James Rowe | h1. RedmineSearch |
---|---|---|---|
2 | |||
3 | 5 | James Rowe | {{>toc}} |
4 | |||
5 | 1 | James Rowe | A part of any project management process is spent looking for existing information. Enter the Redmine search capability. |
6 | |||
7 | 5 | James Rowe | h2. Search box |
8 | 1 | James Rowe | |
9 | 4 | James Rowe | At the top right-hand side of Redmine is a simple search box. Type anything and press enter to search. |
10 | 1 | James Rowe | |
11 | 4 | James Rowe | Searching for #{IssueID} or {IssueID} will go straight to the issue. Search parameters can be enclosed in double quotation marks. |
12 | |||
13 | 1 | James Rowe | !SimpleSearch.png! |
14 | |||
15 | Depending on permission settings and project membership a drop down menu option may show the current project. Simple search searches full text on the project currently displayed in that chooser. |
||
16 | |||
17 | !SearchProjects.png! |
||
18 | |||
19 | Clicking on the word *Search* will immediately take you to the advanced search and results page. Notice the project chooser has followed, and there are checkboxes to limit search to specific types of entries. The checkboxes displayed only if the module is enabled at that project level. |
||
20 | |||
21 | !AdvancedSearch.png! |
||
22 | |||
23 | h2. Search configuration |
||
24 | |||
25 | 2 | James Rowe | h3. Search titles only |
26 | |||
27 | From the advanced search box, *Search titles only* can be enabled to limit results. |
||
28 | |||
29 | h3. Search custom fields |
||
30 | |||
31 | 1 | James Rowe | Don't forget to set custom fields checkbox *Searchable* to true to also search these fields. |
32 | |||
33 | !Searchable.png! |
||
34 | 2 | James Rowe | |
35 | h2. Results |
||
36 | |||
37 | Here is a sample results page from this site on "test issue". |
||
38 | |||
39 | 3 | James Rowe | * Many links to go to what was found. |
40 | 2 | James Rowe | * Unique text highlighting by search terms. |
41 | * Capability to jump to groupings of results (ie News items). |
||
42 | * Leading icons to categorize type of result (ie changeset, issue, comment) |
||
43 | |||
44 | 1 | James Rowe | !Results.png! |
45 | 4 | James Rowe | |
46 | h2. Search controller |
||
47 | |||
48 | Always check the source first: |
||
49 | |||
50 | source:/trunk/app/controllers/search_controller.rb |
||
51 | |||
52 | A more advanced look at the controller explains some of the above behavior: |
||
53 | |||
54 | * Only searches the first 5 tokens of a search |
||
55 | * Tokens must be at least 2 characters long |
||
56 | * Results are returned in paginated sets of 10 |