Skip to content

Commit cb614ec

Browse files
authored
Update docs for master (#5252)
1 parent efffa14 commit cb614ec

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
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/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)