NEST: Verify connection with ES?


(Alberto Gonzalez) #1

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?


(Ashley Mannix) #2

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.


(system) #3

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