'Get text score from text query'

def get_text_score(self):

    if ('_text_score' not in self._data):
        raise InvalidDocumentError('This    document    is    not    originally    built    from    a    text    query')
    return self._data['_text_score']
