Skip to content

Commit 721c8a6

Browse files
authored
Update 7.x documentation (#5248)
1 parent b0ef703 commit 721c8a6

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

docs/aggregations/bucket/auto-date-histogram/auto-date-histogram-aggregation-usage.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ new AutoDateHistogramAggregation("projects_started_per_month")
7676
"auto_date_histogram": {
7777
"field": "startedOn",
7878
"buckets": 10,
79-
"format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time",
79+
"format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time", <1>
8080
"missing": "2015-06-06T12:01:02.123"
8181
},
8282
"aggs": {
@@ -96,6 +96,7 @@ new AutoDateHistogramAggregation("projects_started_per_month")
9696
}
9797
}
9898
----
99+
<1> Note the inclusion of `date_optional_time` to `format`
99100

100101
==== Handling responses
101102

docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ new DateHistogramAggregation("projects_started_per_month")
8686
"field": "startedOn",
8787
"calendar_interval": "month",
8888
"min_doc_count": 2,
89-
"format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time",
89+
"format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time", <1>
9090
"order": {
9191
"_count": "asc"
9292
},
@@ -113,6 +113,7 @@ new DateHistogramAggregation("projects_started_per_month")
113113
}
114114
}
115115
----
116+
<1> Note the inclusion of `date_optional_time` to `format`
116117

117118
==== Handling responses
118119

docs/search/request/point-in-time-usage.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/master
1+
:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/7.x
22

33
:github: https://github.com/elastic/elasticsearch-net
44

@@ -7,7 +7,7 @@
77
////
88
IMPORTANT NOTE
99
==============
10-
This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/Tests/Search/Request/PointInTimeUsageTests.cs.
10+
This file has been generated from https://github.com/elastic/elasticsearch-net/tree/7.x/src/Tests/Tests/Search/Request/PointInTimeUsageTests.cs.
1111
If you wish to submit a PR for any spelling mistakes, typos or grammatical errors for this file,
1212
please modify the original csharp file found at the link and submit the PR with that change. Thanks!
1313
////

docs/search/request/script-fields-usage.asciidoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,15 @@ new SearchRequest<Project>
9292
}
9393
----
9494

95+
[float]
96+
=== Handling Responses
97+
98+
[source,csharp]
99+
----
100+
foreach (var fields in response.Fields)
101+
{
102+
fields.Value<int>("test1").Should().BeGreaterOrEqualTo(0);
103+
fields.Value<double>("test2").Should().BeGreaterOrEqualTo(0);
104+
}
105+
----
106+

0 commit comments

Comments
 (0)