elasticsearch/elasticsearch-net — pull request #759 by Mpdreamz (2014-07-07 20:20:14+00:00)
Title: Feature/object initializer syntax

This PR extends the work that was done to add [the object inititializer syntax that was added to Search()](https://github.com/elasticsearch/elasticsearch-net/blob/develop/src/Tests/Nest.Tests.Unit/Search/InitializerSyntax/InitializerExample.cs#L33) to **ALL** the other API endpoints.

Please refer to [this set of unit tests](https://github.com/elasticsearch/elasticsearch-net/tree/feature/object-initializer-syntax/src/Tests/Nest.Tests.Unit/ObjectInitializer) for an example for each individual API call.

As an example:

## CreateIndex() fluent syntax

```csharp
var response = this._client.CreateIndex(c => c
.Index("new-index-name")
.Settings(s => s
.Add("index.settings", "value")
)
.AddMapping