'Returns an Elasticsearch object using Django settings.
We override elasticutil\'s `get_es` because we\'re using the official
elasticsearch client library.'

@classmethod
def get_es(cls, **overrides):

    defaults = {'hosts': settings.ES_HOSTS, 'timeout': getattr(settings, 'ES_TIMEOUT', 10)}
    defaults.update(overrides)
    key = cls._key(defaults)
    if (key in cls._es):
        return cls._es[key]
    es = elasticsearch.Elasticsearch(**defaults)
    cls._es[key] = es
    return es
