use ElasticSearch if configured