def _escape_query_term(self, term):
        """Escape a query term for inclusion in a query.

        - Also see: prepare_query_term().

        """
        term = term.replace('\\', '\\\\')
        for c in RESERVED_CHAR_LIST:
            term = term.replace(c, r'\{}'.format(c))
        return term
Escape a query term for inclusion in a query.

        - Also see: prepare_query_term().