'Suggest completions for the text provided.'

@classmethod
def suggest_completions(cls, text):

    USER_SUGGEST = 'user-suggest'
    es = UserMappingType.search().get_es()
    results = es.suggest(index=cls.get_index(), body={USER_SUGGEST: {'text': text.lower(), 'completion': {'field': 'suggest'}}})
    if (results[USER_SUGGEST][0]['length'] > 0):
        return results[USER_SUGGEST][0]['options']
    return []
