Skip to content

Update 7.x documentation #5248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -96,6 +96,7 @@ new AutoDateHistogramAggregation("projects_started_per_month")
}
}
----
<1> Note the inclusion of `date_optional_time` to `format`

==== Handling responses

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -113,6 +113,7 @@ new DateHistogramAggregation("projects_started_per_month")
}
}
----
<1> Note the inclusion of `date_optional_time` to `format`

==== Handling responses

Expand Down
4 changes: 2 additions & 2 deletions docs/search/request/point-in-time-usage.asciidoc
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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!
////
Expand Down
12 changes: 12 additions & 0 deletions docs/search/request/script-fields-usage.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,15 @@ new SearchRequest<Project>
}
----

[float]
=== Handling Responses

[source,csharp]
----
foreach (var fields in response.Fields)
{
fields.Value<int>("test1").Should().BeGreaterOrEqualTo(0);
fields.Value<double>("test2").Should().BeGreaterOrEqualTo(0);
}
----