| 1 | = Using Search |
| 2 | |
| 3 | Trac has built-in search functionality to search for occurrences of keywords and substrings in wiki pages, tickets and changeset properties, such as author, revision and log messages. |
| 4 | |
| 5 | Apart from the [search: Search module], you will also find a small search field above the navigation bar at all time. It provides convenient access to the search module from all pages. |
| 6 | |
| 7 | The search results show the most recent modifications ranked first rather than the most relevant result. |
| 8 | |
| 9 | == Quick searches |
| 10 | For quick access to project resources, the quick-search field at the top of every page can be used to enter a [TracLinks wiki link], which will take you directly to the resource identified by that link: |
| 11 | |
| 12 | * ![42] -- Opens change set 42 |
| 13 | * !#42 -- Opens ticket number 42 |
| 14 | * !{1} -- Opens report 1 |
| 15 | * /trunk -- Opens the browser for the `trunk` directory in the default repository |
| 16 | * /repos1/trunk -- Opens the browser for the `trunk` directory in the `repos1` repository |
| 17 | |
| 18 | == Advanced |
| 19 | |
| 20 | === Disabling Quickjump |
| 21 | To disable the Quickjump feature for a keyword start the query with an exclamation mark (`!`): use `!TracGuide` to search for occurrences of the literal word !TracGuide. |
| 22 | |
| 23 | === Search Links |
| 24 | From the Wiki, it is possible to link to a specific search, using `search:` links: |
| 25 | * `search:?q=crash` will search for the string "crash" |
| 26 | * `search:?q=trac+link&wiki=on` will search for "trac" and "link" in wiki pages only |
| 27 | |
| 28 | ---- |
| 29 | See also: TracGuide, TracLinks, TracQuery |