From fca914b7e82b249c6517d45e8bc6232ab8480c8c Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Thu, 7 Jan 2021 15:16:00 +0000 Subject: [PATCH] Update docs for master --- .../auto-date-histogram-aggregation-usage.asciidoc | 3 ++- .../date-histogram-aggregation-usage.asciidoc | 3 ++- docs/search/request/script-fields-usage.asciidoc | 12 ++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) 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 2878b6dbd39..000473b4775 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 5d0aed24070..7dee6cf7be8 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/script-fields-usage.asciidoc b/docs/search/request/script-fields-usage.asciidoc index 9dd6247e0b3..871a60e3637 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); +} +---- +