NEST: Verify connection with ES?

Is there anyway to test connectivity with elasticsearch?

if there are no connection to ES NEST will try to index but after a while doesnt raise exception just return invalid result.

What is proper way to check connectivy before trying to index documents?

You should be able to call Ping on your ElasticClient. This will send a simple http HEAD request to your Elasticsearch host that will respond with a success code if it's alive and cooking.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.