Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!


Project Description


This is a plugin for Gnu Mediagoblin that adds support for searching media.

By default, the search function will query the tags, title and description fields
of media for the given phrase.

More complex queries are supported, e.g searching for media with tagged with "hello"
and not tagged with "goodbye" (tag:hello -tag:goodbye), or searching for any
media added by the user "tom" (user:tom).

(See for more syntax info.)

This plugin is based on an existing search plugin,,
but uses a search index for queries.

Not tested on python 3.

Set up the search plugin

1. Clone the search plugin repository from GitHub.

$ git clone

2. Create a source tarball.

$ /path/to/mediagoblin/bin/python sdist

2. Install this into your mediagoblin virtualenv.

$ /path/to/mediagoblin/bin/pip install dist/mediagoblin-indexedsearch-#VERSION#.tar.gz

3. Enable the mediagoblin-indexedsearch plugin by adding the following line to the ``[plugins]`` section of your mediagoblin_local.ini file.


4. Restart your MediaGoblin instance for the config file changes to be effective.

Configure the search plugin

The following parameters can be specified in the indexedsearch section of your mediagoblin
config file.


Specifies the style of the search link that is added to the top header bar of the MediaGoblin instance.
The options for the search link display style are:

* ``form`` displays a search form next to the Log In link. This is the default display style.
* ``link`` displays a normal text link next to the Log In link.
* ``button`` displays an action button link next to the Log In link.
* ``none`` does not display a link. This is useful if you want to create your own search link in a user_dev template or custom theme.

INDEX_DIR = '/path/to/index/directory'

Specifies the directory in which the plugin will create a search index (the plugin will
create the directory if it doesn't exist, assuming correct permissions etc.). By default the index
will be created in /path/to/mediagoblin/user_dev/searchindex.


Specifies whether or not searching for content requires being logged-in. Defaults to True.

Release History

This version
History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting