diff --git a/docs/aggregations/bucket/auto-date-histogram/auto-date-histogram-aggregation-usage.asciidoc b/docs/aggregations/bucket/auto-date-histogram/auto-date-histogram-aggregation-usage.asciidoc index 00e50edf6e2..14d8465b96f 100644 --- a/docs/aggregations/bucket/auto-date-histogram/auto-date-histogram-aggregation-usage.asciidoc +++ b/docs/aggregations/bucket/auto-date-histogram/auto-date-histogram-aggregation-usage.asciidoc @@ -76,7 +76,7 @@ new AutoDateHistogramAggregation("projects_started_per_month") "auto_date_histogram": { "field": "startedOn", "buckets": 10, - "format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time", + "format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time", <1> "missing": "2015-06-06T12:01:02.123" }, "aggs": { @@ -96,6 +96,7 @@ new AutoDateHistogramAggregation("projects_started_per_month") } } ---- +<1> Note the inclusion of `date_optional_time` to `format` ==== Handling responses diff --git a/docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc b/docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc index ce20f2f8d13..65ac2b9d683 100644 --- a/docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc +++ b/docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc @@ -86,7 +86,7 @@ new DateHistogramAggregation("projects_started_per_month") "field": "startedOn", "calendar_interval": "month", "min_doc_count": 2, - "format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time", + "format": "yyyy-MM-dd'T'HH:mm:ss||date_optional_time", <1> "order": { "_count": "asc" }, @@ -113,6 +113,7 @@ new DateHistogramAggregation("projects_started_per_month") } } ---- +<1> Note the inclusion of `date_optional_time` to `format` ==== Handling responses diff --git a/docs/search/request/point-in-time-usage.asciidoc b/docs/search/request/point-in-time-usage.asciidoc index b54b7295299..83f1d99fd00 100644 --- a/docs/search/request/point-in-time-usage.asciidoc +++ b/docs/search/request/point-in-time-usage.asciidoc @@ -1,4 +1,4 @@ -:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/master +:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/7.x :github: https://github.com/elastic/elasticsearch-net @@ -7,7 +7,7 @@ //// IMPORTANT NOTE ============== -This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/Tests/Search/Request/PointInTimeUsageTests.cs. +This file has been generated from https://github.com/elastic/elasticsearch-net/tree/7.x/src/Tests/Tests/Search/Request/PointInTimeUsageTests.cs. If you wish to submit a PR for any spelling mistakes, typos or grammatical errors for this file, please modify the original csharp file found at the link and submit the PR with that change. Thanks! //// diff --git a/docs/search/request/script-fields-usage.asciidoc b/docs/search/request/script-fields-usage.asciidoc index 013254b59f6..13c086f97b1 100644 --- a/docs/search/request/script-fields-usage.asciidoc +++ b/docs/search/request/script-fields-usage.asciidoc @@ -92,3 +92,15 @@ new SearchRequest } ---- +[float] +=== Handling Responses + +[source,csharp] +---- +foreach (var fields in response.Fields) +{ + fields.Value("test1").Should().BeGreaterOrEqualTo(0); + fields.Value("test2").Should().BeGreaterOrEqualTo(0); +} +---- +