def escape_postgres_query(self, text):
        return " & ".join(
            "$${0}$$".format(word)
            for word
            in escape_query(text).split()
        )
Escapes the given text to become a valid ts_query.
dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/PostgresLegacySearchBackend.escape_postgres_query