diff --git a/docs/concepts/connecting.markdown b/docs/concepts/connecting.markdown index b03dbcaa396..311de26f03b 100644 --- a/docs/concepts/connecting.markdown +++ b/docs/concepts/connecting.markdown @@ -11,12 +11,10 @@ This section describes how to instantiate a client and have it connect to the se ## Basic plumbing: - var elasticSettings = new ConnectionSettings("127.0.0.1.", 9200) + var elasticSettings = new ConnectionSettings(new Uri("http://127.0.0.1:9200")) .SetDefaultIndex("mpdreamz"); var client = new ElasticClient(elasticSettings); -`ConnectionSettings`'s constructor has many overloads, including support for connecting through proxies. - ## Connecting Connecting can be done several ways: