]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/sphinxfulltext/models.py
make the xml exporter work
[osqa.git] / forum_modules / sphinxfulltext / models.py
1 from forum.models import Question
2 from django.conf import settings
3 from djangosphinx.manager import SphinxSearch
4
5 from djangosphinx.models import SphinxSearch
6
7 Question.add_to_class('search', SphinxSearch(
8                                    index=' '.join(settings.SPHINX_SEARCH_INDICES),
9                                    mode='SPH_MATCH_ALL',
10                                 )
11                       )