Skip to content

Commit da61eca

Browse files
committed
Generate docs
1 parent 045e0e0 commit da61eca

File tree

3 files changed

+78
-1
lines changed

3 files changed

+78
-1
lines changed

docs/client-concepts/connection-pooling/request-overrides/disable-sniff-ping-per-request.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,6 @@ audit = await audit.TraceCall(
115115
);
116116
----
117117
<1> disable ping and sniff
118+
118119
<2> no ping or sniff before the call
119120

docs/client-concepts/connection/configuration-options.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Enables gzip compressed requests and responses.
9090
+
9191
IMPORTANT: You need to configure http compression on Elasticsearch to be able to use this
9292
+
93-
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-http.html
93+
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html
9494

9595
`EnableHttpPipelining`::
9696

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/7.4
2+
3+
:github: https://github.com/elastic/elasticsearch-net
4+
5+
:nuget: https://www.nuget.org/packages
6+
7+
////
8+
IMPORTANT NOTE
9+
==============
10+
This file has been generated from https://github.com/elastic/elasticsearch-net/tree/7.x/src/Tests/Tests/ClientConcepts/LowLevel/LowLevelResponseTypes.doc.cs.
11+
If you wish to submit a PR for any spelling mistakes, typos or grammatical errors for this file,
12+
please modify the original csharp file found at the link and submit the PR with that change. Thanks!
13+
////
14+
15+
[[low-level-response-types]]
16+
=== Low Level Client Response Types
17+
18+
[source,csharp]
19+
----
20+
return @"{
21+
""boolean"" : true,
22+
""string"" : ""v"",
23+
""number"" : 29,
24+
""array"" : [1, 2, 3, 4],
25+
""object"" : {
26+
""first"" : ""value1"",
27+
""second"" : ""value2"",
28+
""nested"" : { ""x"" : ""value3"" }
29+
},
30+
""array_of_objects"" : [
31+
{
32+
""first"" : ""value11"",
33+
""second"" : ""value12"",
34+
""nested"" : { ""x"" : ""value4"" }
35+
},
36+
{
37+
""first"" : ""value21"",
38+
""second"" : ""value22"",
39+
""nested"" : { ""x"" : ""value5"" },
40+
""complex.nested"" : { ""x"" : ""value6"" }
41+
}
42+
]
43+
}";
44+
----
45+
46+
[float]
47+
=== DynamicResponse
48+
49+
[source,csharp]
50+
----
51+
var response = Client.LowLevel.Search<DynamicResponse>(PostData.Empty);
52+
53+
response.Get<string>("object.first").Should()
54+
.NotBeEmpty()
55+
.And.Be("value1");
56+
57+
response.Get<string>("object._arbitrary_key_").Should()
58+
.NotBeEmpty()
59+
.And.Be("first");
60+
61+
response.Get<int>("array.1").Should().Be(2);
62+
response.Get<long>("array.1").Should().Be(2);
63+
response.Get<long>("number").Should().Be(29);
64+
response.Get<long?>("number").Should().Be(29);
65+
response.Get<long?>("number_does_not_exist").Should().Be(null);
66+
response.Get<long?>("number").Should().Be(29);
67+
68+
response.Get<string>("array_of_objects.1.second").Should()
69+
.NotBeEmpty()
70+
.And.Be("value22");
71+
72+
response.Get<string>("array_of_objects.1.complex\\.nested.x").Should()
73+
.NotBeEmpty()
74+
.And.Be("value6");
75+
----
76+

0 commit comments

Comments
 (0)