| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = MultiRepoSearchPlugin = |
| 4 | |
| 5 | == Description == |
| 6 | |
| 7 | Full text search on source code across multiple repositories in Trac 0.12+ |
| 8 | |
| 9 | Derived from the RepoSearchPlugin, but: |
| 10 | |
| 11 | 1. It works for Trac 0.12+ |
| 12 | 1. It works on multiple repositories, and any repository type supported by Trac |
| 13 | 1. Pluggable search backends |
| 14 | 1. Default search backend caches source text in the Trac database |
| 15 | |
| 16 | == Bugs/Feature Requests == |
| 17 | |
| 18 | Existing bugs and feature requests for MultiRepoSearchPlugin are |
| 19 | [report:9?COMPONENT=MultiRepoSearchPlugin here]. |
| 20 | |
| 21 | If you have any issues, create a |
| 22 | [http://trac-hacks.org/newticket?component=MultiRepoSearchPlugin&owner=ejucovy new ticket]. |
| 23 | |
| 24 | == Download == |
| 25 | |
| 26 | Download the zipped source from [download:multireposearchplugin here]. |
| 27 | |
| 28 | == Source == |
| 29 | |
| 30 | You can check out MultiRepoSearchPlugin from [http://trac-hacks.org/svn/multireposearchplugin here] using Subversion, or [source:multireposearchplugin browse the source] with Trac. |
| 31 | |
| 32 | == Example == |
| 33 | |
| 34 | To install: |
| 35 | |
| 36 | {{{ |
| 37 | pip install -r requirements.txt |
| 38 | python setup.py develop |
| 39 | }}} |
| 40 | |
| 41 | Add to your trac.conf: |
| 42 | {{{ |
| 43 | [components] |
| 44 | multireposearch.* = enabled |
| 45 | }}} |
| 46 | |
| 47 | Upgrade your trac environment: |
| 48 | {{{ |
| 49 | trac-admin path/to/env upgrade |
| 50 | }}} |
| 51 | |
| 52 | Prepare all available repositories with an initial indexing: |
| 53 | {{{ |
| 54 | trac-admin path/to/env multireposearch reindex_all |
| 55 | }}} |
| 56 | |
| 57 | You will now be able to perform text searches of repository contents through the trac search UI. |
| 58 | |
| 59 | As long as you have your trac post-commit or post-receive hooks properly configured, |
| 60 | source will remain up-to-date. |
| 61 | |
| 62 | Otherwise, to manually reindex a single repository, you ca run: |
| 63 | {{{ |
| 64 | trac-admin path/to/env multireposearch reindex repo-name |
| 65 | }}} |
| 66 | |
| 67 | Where repo-name is the name assigned to your repository in Trac. |
| 68 | |
| 69 | == Recent Changes == |
| 70 | |
| 71 | [[ChangeLog(multireposearchplugin, 3)]] |
| 72 | |
| 73 | == Author/Contributors == |
| 74 | |
| 75 | '''Author:''' [wiki:ejucovy] [[BR]] |
| 76 | '''Maintainer:''' [wiki:ejucovy] [[BR]] |
| 77 | '''Contributors:''' |