@classmethod
def parse_term_vectors(cls, lst, path=''):
    """Transform a solr list to dict

        Turns [a, x, b, y, c, z ...] into {a: x, b: y, c: z ...}
        If the values are lists themselves, this is done recursively
        """
    dct = dict()
    for i in range(0, len(lst), 2):
        k = lst[i]
        v = lst[i + 1]
        if path != '.warnings' and isinstance(v, list):
            v = cls.parse_term_vectors(v, path + '.' + k)
        dct[k] = v
    return dct
