Pootle provides searching functionality, which is a great way to do searches over all files in a project. If there are many strings to search through, then performance can be slow, but installing a text indexing library will speed things up, allowing searching even in very large projects.
The following indexing engines are supported:
The indexing database helps to speed up search queries performed from the Pootle interface.
If you want to use an indexing engine to speed up text searches, then you need to install one of the supported indexing engines and its Python binding.
The indexing engine will be used, as soon as the required Python bindings are available.
See below for details.
apt-get install python-xapian xapian-tools
The Xapian tools packaged is required for the xapian-check command which is used to determines whether the Xapian version is compatible with Pootle.
Note
If you are deploying using a virtualenv and want to make use of Xapian then you will need to, either:
Install your virtualenv with access to the system packages using the –system-site-packages option:
virtualenv --system-site-packages ENV
Symbolically link the Xapian bindings into your virtualenv, as follows on an Ubuntu system:
$ mkdir ${ENV}/lib/python2.6/dist-packages
$ cd ${ENV}/lib/python2.6/dist-packages
$ ln -s /usr/lib/python2.6/dist-packages/xapian.py
$ ln -s /usr/lib/python2.6/dist-packages/_xapian.so
If you want to check which indexing engines are currently detected on your system you can execute the self-tests of the indexing engine interface of Pootle:
python translate/search/indexing/test_indexers.py
This will display the installed engines and check if they work as expected.
Note
Please file a bug report if you encounter any errors when running these tests.
The actual test for xapian is xapian-check --version
.