def escapeQueryTerm(self, term):
        """
    + - && || ! ( ) { } [ ] ^ " ~ * ? : \
    """
        reserved = [
            '+',
            '-',
            '&',
            '|',
            '!',
            '(',
            ')',
            '{',
            '}',
            '[',
            ']',
            '^',
            '"',
            '~',
            '*',
            '?',
            ':',
        ]
        term = term.replace('\\', '\\\\')
        for c in reserved:
            term = term.replace(c, "\%s" % c)
        return term