Full text search in multiple repositories


This plugin implements full text search on source code across multiple repositories in Trac 0.12+. It is derived from the RepoSearchPlugin.

Key features:

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

Usage note: to search for a string containing double quotes, enclose the whole string in single quotes, for example 'draft="true"'.

Bugs/Feature Requests

Existing bugs and feature requests for MultiRepoSearchPlugin are here.

If you have any issues, create a new ticket.


7 / 12


2 / 4


1 / 1


Download the zipped source from here.


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


To install:

pip install -r requirements.txt
python develop

Alternatively, to install using easy_install on Ubuntu 11.10 Server:

sudo easy_install
sudo easy_install

Add to your conf/trac.ini file:

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

Users with REPO_SEARCH and/or TRAC_ADMIN permissions 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: ejucovy
Maintainer: ejucovy

Last modified 2 years ago Last modified on Apr 11, 2022, 6:33:24 AM