summaryrefslogtreecommitdiffstats
path: root/forum_modules/sphinxfulltext/models.py
blob: 9db4aa868738cb99066c1da8f51e48b062bad4dc (plain)
1
2
3
4
5
6
7
8
9
10
from forum.models import Question
from django.conf import settings
from djangosphinx.manager import SphinxSearch


Question.add_to_class('search', SphinxSearch(
                                   index=' '.join(settings.SPHINX_SEARCH_INDICES),
                                   mode='SPH_MATCH_ALL',
                                )
                      )