def do_search_ranking(self, engine_slug, queryset, search_text):
        search_text = self._format_query(search_text)
        return queryset.extra(
            select = {
                "watson_rank": """
                    ((MATCH (title) AGAINST (%s IN BOOLEAN MODE)) * 3) +
                    ((MATCH (description) AGAINST (%s IN BOOLEAN MODE)) * 2) +
                    ((MATCH (content) AGAINST (%s IN BOOLEAN MODE)) * 1)
                """,
            },
            select_params = (search_text, search_text, search_text,),
            order_by = ("-watson_rank",),
        )
Handles an error that occurs while setting the object's trait value.
dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/MySQLSearchBackend.do_search_ranking--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/drop_editor.py/SimpleEditor.error