| 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 | |
| 11 | 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: |
| 12 | |
| 13 | * ![42] -- Opens change set 42 |
| 14 | * !#42 -- Opens ticket number 42 |
| 15 | * !{1} -- Opens report 1 |
| 16 | * /trunk -- Opens the browser for the `trunk` directory in the default repository |
| 17 | * /repos1/trunk -- Opens the browser for the `trunk` directory in the `repos1` repository |
| 18 | |
| 19 | 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. |
| 20 | |
| 21 | == Search TracLinks |
| 22 | |
| 23 | From the Wiki, it is possible to link to a specific search, using `search:` links: |
| 24 | * `search:?q=crash` will search for the string "crash" |
| 25 | * `search:?q=trac+link&wiki=on` will search for "trac" and "link" in wiki pages only |
| 26 | |
| 27 | == Search Filters |
| 28 | |
| 29 | On the search page, pressing the modifier key while selecting a search filter will unselect all other search filters. |
| 30 | |
| 31 | ---- |
| 32 | See also: TracGuide, TracLinks, TracQuery |