()
return es
Get a handle to the configured elastic search DB.
    Returns an elasticsearch.Elasticsearch instance.
Get a handle to the configured elastic search DB.
    Returns an elasticsearch.Elasticsearch instance.
Get a handle to the configured elastic search DB . Returns an elasticsearch . Elasticsearch instance .
def get_es_new():
    """
    Get a handle to the configured elastic search DB.
    Returns an elasticsearch.Elasticsearch instance.
    """
    hosts = _es_hosts()
    es = Elasticsearch(hosts, timeout=settings.ES_SEARCH_TIMEOUT, serializer=ESJSONSerializer())
    return es
def get_es_new ( ) : hosts = _es_hosts ( ) es = Elasticsearch ( hosts , timeout = settings . ES_SEARCH_TIMEOUT , serializer = ESJSONSerializer ( ) ) return es