

def do_filter_ranking(self, engine_slug, queryset, search_text):
    'Performs the full text ranking.'
    search_text = self._format_query(queryset)
    return queryset.extra(select={
        'watson_rank': '\n                    ((MATCH (watson_searchentry.title) AGAINST (%s IN BOOLEAN MODE)) * 3) +\n                    ((MATCH (watson_searchentry.description) AGAINST (%s IN BOOLEAN MODE)) * 2) +\n                    ((MATCH (watson_searchentry.content) AGAINST (%s IN BOOLEAN MODE)) * 1)\n                ',
    }, select_params=(search_text, search_text, search_text), order_by=('-watson_rank',))

dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py MySQLSearchBackend.do_filter_ranking/VarMisuse@24/48 `search_text`->`queryset`