connect function

Set connection details to an Elasticsearch engine.