()
return es
Get a handle to the configured elastic search DB with settings geared towards exports.
    Returns an elasticsearch.Elasticsearch instance.
Get a handle to the configured elastic search DB with settings geared towards exports.
    Returns an elasticsearch.Elasticsearch instance.
Get a handle to the configured elastic search DB with settings geared towards exports . Returns an elasticsearch . Elasticsearch instance .
def get_es_export():
    """
    Get a handle to the configured elastic search DB with settings geared towards exports.
    Returns an elasticsearch.Elasticsearch instance.
    """
    hosts = _es_hosts()
    es = Elasticsearch(
        hosts,
        retry_on_timeout=True,
        max_retries=3,
        # Timeout in seconds for an elasticsearch query
        timeout=300,
        serializer=ESJSONSerializer(),
    )
    return es
def get_es_export ( ) : hosts = _es_hosts ( ) es = Elasticsearch ( hosts , retry_on_timeout = True , max_retries = 3 , # Timeout in seconds for an elasticsearch query timeout = 300 , serializer = ESJSONSerializer ( ) , ) return es