]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/sphinxfulltext/models.py
Closes OSQA 175 and OSQA 318. Added a bunch of options to configure the email validat...
[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                       )