Skip to content

Commit 66f1419

Browse files
committed
Rename .Raw on NEST's client to .LowLevel to get to the low level Elasticsearch.NET client
1 parent 403d1d5 commit 66f1419

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/Nest/ElasticClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public partial class ElasticClient : IElasticClient, IHighLevelToLowLevelDispatc
2020
public Inferrer Infer => this.Transport.Settings.Inferrer;
2121
public IConnectionSettingsValues ConnectionSettings => this.Transport.Settings;
2222

23-
public IElasticLowLevelClient Raw { get; }
23+
public IElasticLowLevelClient LowLevel { get; }
2424

2525
public ElasticClient() : this(new ConnectionSettings(new Uri("http://localhost:9200"))) { }
2626
public ElasticClient(Uri uri) : this(new ConnectionSettings(uri)) { }
@@ -35,8 +35,8 @@ public ElasticClient(ITransport<IConnectionSettingsValues> transport)
3535
transport.Settings.Inferrer.ThrowIfNull(nameof(transport.Settings.Inferrer));
3636

3737
this.Transport = transport;
38-
this.Raw = new ElasticLowLevelClient(this.Transport);
39-
this.LowLevelDispatch = new LowLevelDispatch(this.Raw);
38+
this.LowLevel = new ElasticLowLevelClient(this.Transport);
39+
this.LowLevelDispatch = new LowLevelDispatch(this.LowLevel);
4040
}
4141

4242
TResponse IHighLevelToLowLevelDispatcher.Dispatch<TRequest, TQueryString, TResponse>(

src/Nest/IElasticClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public partial interface IElasticClient
77
{
88
IConnectionSettingsValues ConnectionSettings { get; }
99
IElasticsearchSerializer Serializer { get; }
10-
IElasticLowLevelClient Raw { get; }
10+
IElasticLowLevelClient LowLevel { get; }
1111
Inferrer Infer { get; }
1212
}
1313
}

src/Tests/Framework/UrlTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public Task<UrlTester> RequestAsync<TResponse>(Func<IElasticClient, Task<TRespon
4949

5050
public UrlTester LowLevel(Func<IElasticLowLevelClient, IApiCallDetails> call)
5151
{
52-
var callDetails = call(this.GetClient().Raw);
52+
var callDetails = call(this.GetClient().LowLevel);
5353
return Assert("lowleve", callDetails);
5454
}
5555

src/Tests/Search/MultiSearch/MultiSearchLowLevelPostDataTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public MultiSearchLowLevelPostDataTests(ReadOnlyCluster cluster, EndpointUsage u
3939

4040
[I] public void PostEnumerableOfObjects()
4141
{
42-
var response = this._client.Raw.Msearch<dynamic>("project", "project", this.Search);
42+
var response = this._client.LowLevel.Msearch<dynamic>("project", "project", this.Search);
4343
AssertResponse(response);
44-
response = this._client.Raw.Msearch<dynamic>("project", "project", (object)this.Search);
44+
response = this._client.LowLevel.Msearch<dynamic>("project", "project", (object)this.Search);
4545
AssertResponse(response);
4646
}
4747

@@ -51,9 +51,9 @@ [I] public void PostEnumerableOfStrings()
5151
.Select(s => this._client.Serializer.SerializeToString(s, SerializationFormatting.None))
5252
.ToList();
5353

54-
var response = this._client.Raw.Msearch<dynamic>("project", "project", listOfStrings);
54+
var response = this._client.LowLevel.Msearch<dynamic>("project", "project", listOfStrings);
5555
AssertResponse(response);
56-
response = this._client.Raw.Msearch<dynamic>("project", "project", (object)listOfStrings);
56+
response = this._client.LowLevel.Msearch<dynamic>("project", "project", (object)listOfStrings);
5757
AssertResponse(response);
5858
}
5959

@@ -64,9 +64,9 @@ [I] public void PostString()
6464
.ToList()
6565
.Aggregate(new StringBuilder(), (sb, s) => sb.Append(s + "\n"), sb => sb.ToString());
6666

67-
var response = this._client.Raw.Msearch<dynamic>("project", "project", str);
67+
var response = this._client.LowLevel.Msearch<dynamic>("project", "project", str);
6868
AssertResponse(response);
69-
response = this._client.Raw.Msearch<dynamic>("project", "project", (object)str);
69+
response = this._client.LowLevel.Msearch<dynamic>("project", "project", (object)str);
7070
AssertResponse(response);
7171
}
7272

@@ -79,9 +79,9 @@ [I] public void PostByteArray()
7979

8080
var bytes = Encoding.UTF8.GetBytes(str);
8181

82-
var response = this._client.Raw.Msearch<dynamic>("project", "project", bytes);
82+
var response = this._client.LowLevel.Msearch<dynamic>("project", "project", bytes);
8383
AssertResponse(response);
84-
response = this._client.Raw.Msearch<dynamic>("project", "project", (object)bytes);
84+
response = this._client.LowLevel.Msearch<dynamic>("project", "project", (object)bytes);
8585
AssertResponse(response);
8686
}
8787

0 commit comments

Comments
 (0)