Hi all,
I'm a newbie with Python and Elasticsearch.
I'm trying to create a client from host, username and password.
With Python, the original code is:
Elasticsearch(
hosts=hosts,
http_auth=(es_username, es_password),
use_ssl=True,
verify_certs=False,
ssl_show_warn=False,
timeout=600,
)
For the moment, I transform it to:
Elasticsearch::new(
TransportBuilder::new(SingleNodeConnectionPool::new(Url::parse(&host)?))
.timeout(Duration::from_secs(600))
.auth(elasticsearch::auth::Credentials::Basic(u, p))
.build()?,
)
Even with the document, I'm unable to understand how to adapt use_ssl=True, verify_certs=False, ssl_show_warn=False
.
Could someone help me ?
Regards