@classmethod
def get_target_index(cls, query):
    """Get index target."""
    results = cls.search(query=query)
    if results['hits']['total'] == 0:
        return ''
    index_name = results['hits']['hits'][0]['_index']
    return index_name
