wiki:MultiRepoSearchPlugin

Version 8 (modified by Ryan J Ollos, 9 years ago) (diff)

Fixed broken markup.

Full text search in multiple repositories

Description

Full text search on source code across multiple repositories in Trac 0.12+.

Derived from the RepoSearchPlugin, but:

  1. It works for Trac 0.12+.
  2. It works on multiple repositories, and any repository type supported by Trac.
  3. Pluggable search backends.
  4. Default search backend caches source text in the Trac database.

Bugs/Feature Requests

Existing bugs and feature requests for MultiRepoSearchPlugin are here.

If you have any issues, create a new ticket.

defect

7 / 12

enhancement

2 / 4

task

1 / 1

Download

Download the zipped source from here.

Source

You can clone MultiRepoSearchPlugin from here using Git, or browse the source with Github.

Example

To install:

pip install -r requirements.txt
python setup.py develop

Alternatively, to install using easy_install on Ubuntu 11.10 Server:

sudo easy_install http://trac-hacks.org/svn/tracsqlhelperscript/0.12/
sudo easy_install https://github.com/boldprogressives/trac-MultiRepoSearchPlugin/tarball/0.2.1

Add to your conf/trac.ini:

[components]
multireposearch.* = enabled

Upgrade your Trac environment:

trac-admin path/to/env upgrade

Prepare all available repositories with an initial indexing:

trac-admin path/to/env multireposearch reindex_all

You will now be able to perform text searches of repository contents through the Trac search UI.

As long as you have your trac post-commit or post-receive hooks properly configured, the source will remain up-to-date.

Otherwise, to manually reindex a single repository, you can run:

trac-admin path/to/env multireposearch reindex repo-name

Where repo-name is the name assigned to your repository in Trac.

Author/Contributors

Author: ejucovy
Maintainer: ejucovy
Contributors: