

def do_search(self, engine_slug, queryset, search_text):
    'Performs the full text search.'
    return queryset.extra(where=("search_tsv @@ to_tsquery('{search_config}', %s)".format(search_config=self.search_config),), params=(self.escape_postgres_query(search_text),))

dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py PostgresSearchBackend.do_search/original