Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/client-concepts/low-level/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ There are many other <<configuration-options,configuration options>> on `Connect
* whether HTTP compression support should be enabled on the client

[float]
==== Connecton pools
==== Connection pools

`ConnectionConfiguration` is not restricted to being passed a single address for Elasticsearch. There are several different
types of <<connection-pooling,Connection pool>> available, each with different characteristics that can be used to
Expand Down Expand Up @@ -99,10 +99,10 @@ var person = new Person
LastName = "Laarman"
};

var indexResponse = lowlevelClient.Index<BytesResponse>("people", "person", "1", PostData.Serializable(person)); <1>
var indexResponse = lowlevelClient.Index<BytesResponse>("people", "person", "1", PostData.Serializable(person)); <1>
byte[] responseBytes = indexResponse.Body;

var asyncIndexResponse = await lowlevelClient.IndexAsync<StringResponse>("people", "person", "1", PostData.Serializable(person)); <2>
var asyncIndexResponse = await lowlevelClient.IndexAsync<StringResponse>("people", "person", "1", PostData.Serializable(person)); <2>
string responseString = asyncIndexResponse.Body;
----
<1> synchronous method that returns an `IIndexResponse`
Expand Down Expand Up @@ -238,8 +238,8 @@ is successful
----
var searchResponse = lowlevelClient.Search<BytesResponse>("people", "person", PostData.Serializable(new { match_all = new {} }));

var success = searchResponse.Success; <1>
var successOrKnownError = searchResponse.SuccessOrKnownError; <2>
var success = searchResponse.Success; <1>
var successOrKnownError = searchResponse.SuccessOrKnownError; <2>
var exception = searchResponse.OriginalException; <3>
----
<1> Response is in the 200 range, or an expected response for the given request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void UsingConnectionSettings()
* - whether HTTP compression support should be enabled on the client
*
* [float]
* ==== Connecton pools
* ==== Connection pools
*
* `ConnectionConfiguration` is not restricted to being passed a single address for Elasticsearch. There are several different
* types of <<connection-pooling,Connection pool>> available, each with different characteristics that can be used to
Expand Down