def status(): """Display status info for Elastic Search""" print json.dumps(search.status(), indent=4)
def es_is_running(): try: return bool(search.status()) except SocketError, e: return False