Skip to content

Commit 8c36aac

Browse files
authored
Update docs to latest (#4572)
Update docs to latest
1 parent a237b25 commit 8c36aac

File tree

43 files changed

+47
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+47
-157
lines changed

docs/aggregations/bucket/parent/parent-aggregation-usage.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ new ParentAggregation("name_of_parent_agg", typeof(CommitActivity)) <1>
4747
}
4848
----
4949
<1> `join` field is determined from the _child_ type. In this example, it is `CommitActivity`
50-
5150
<2> sub-aggregations are on the type determined from the `join` field. In this example, a `Project` is a parent of `CommitActivity`
5251

5352
[source,javascript]

docs/aggregations/pipeline/derivative/derivative-aggregation-usage.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a => a
2323
.DateHistogram("projects_started_per_month", dh => dh
2424
.Field(p => p.StartedOn)
2525
.Interval(DateInterval.Month)
26-
.MinimumDocumentCount(1)
26+
.MinimumDocumentCount(0)
2727
.Aggregations(aa => aa
2828
.Sum("commits", sm => sm
2929
.Field(p => p.NumberOfCommits)
@@ -43,7 +43,7 @@ new DateHistogramAggregation("projects_started_per_month")
4343
{
4444
Field = "startedOn",
4545
Interval = DateInterval.Month,
46-
MinimumDocumentCount = 1,
46+
MinimumDocumentCount = 0,
4747
Aggregations =
4848
new SumAggregation("commits", "numberOfCommits") &&
4949
new DerivativeAggregation("commits_derivative", "commits")
@@ -58,7 +58,7 @@ new DateHistogramAggregation("projects_started_per_month")
5858
"date_histogram": {
5959
"field": "startedOn",
6060
"interval": "month",
61-
"min_doc_count": 1
61+
"min_doc_count": 0
6262
},
6363
"aggs": {
6464
"commits": {

docs/aggregations/pipeline/moving-average/moving-average-ewma-aggregation-usage.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a => a
2323
.DateHistogram("projects_started_per_month", dh => dh
2424
.Field(p => p.StartedOn)
2525
.Interval(DateInterval.Month)
26-
.MinimumDocumentCount(1)
26+
.MinimumDocumentCount(0)
2727
.Aggregations(aa => aa
2828
.Sum("commits", sm => sm
2929
.Field(p => p.NumberOfCommits)
@@ -48,7 +48,7 @@ new DateHistogramAggregation("projects_started_per_month")
4848
{
4949
Field = "startedOn",
5050
Interval = DateInterval.Month,
51-
MinimumDocumentCount = 1,
51+
MinimumDocumentCount = 0,
5252
Aggregations =
5353
new SumAggregation("commits", "numberOfCommits")
5454
&& new MovingAverageAggregation("commits_moving_avg", "commits")
@@ -69,7 +69,7 @@ new DateHistogramAggregation("projects_started_per_month")
6969
"date_histogram": {
7070
"field": "startedOn",
7171
"interval": "month",
72-
"min_doc_count": 1
72+
"min_doc_count": 0
7373
},
7474
"aggs": {
7575
"commits": {

docs/aggregations/pipeline/moving-average/moving-average-holt-linear-aggregation-usage.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a => a
2323
.DateHistogram("projects_started_per_month", dh => dh
2424
.Field(p => p.StartedOn)
2525
.Interval(DateInterval.Month)
26-
.MinimumDocumentCount(1)
26+
.MinimumDocumentCount(0)
2727
.Aggregations(aa => aa
2828
.Sum("commits", sm => sm.Field(p => p.NumberOfCommits))
2929
.MovingAverage("commits_moving_avg", mv => mv
@@ -47,7 +47,7 @@ new DateHistogramAggregation("projects_started_per_month")
4747
{
4848
Field = "startedOn",
4949
Interval = DateInterval.Month,
50-
MinimumDocumentCount = 1,
50+
MinimumDocumentCount = 0,
5151
Aggregations =
5252
new SumAggregation("commits", "numberOfCommits")
5353
&& new MovingAverageAggregation("commits_moving_avg", "commits")
@@ -69,7 +69,7 @@ new DateHistogramAggregation("projects_started_per_month")
6969
"date_histogram": {
7070
"field": "startedOn",
7171
"interval": "month",
72-
"min_doc_count": 1
72+
"min_doc_count": 0
7373
},
7474
"aggs": {
7575
"commits": {

docs/aggregations/pipeline/moving-average/moving-average-holt-winters-aggregation-usage.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a => a
2323
.DateHistogram("projects_started_per_month", dh => dh
2424
.Field(p => p.StartedOn)
2525
.Interval(DateInterval.Month)
26-
.MinimumDocumentCount(1)
26+
.MinimumDocumentCount(0)
2727
.Aggregations(aa => aa
2828
.Sum("commits", sm => sm
2929
.Field(p => p.NumberOfCommits)
@@ -54,7 +54,7 @@ new DateHistogramAggregation("projects_started_per_month")
5454
{
5555
Field = "startedOn",
5656
Interval = DateInterval.Month,
57-
MinimumDocumentCount = 1,
57+
MinimumDocumentCount = 0,
5858
Aggregations =
5959
new SumAggregation("commits", "numberOfCommits")
6060
&& new MovingAverageAggregation("commits_moving_avg", "commits")
@@ -81,7 +81,7 @@ new DateHistogramAggregation("projects_started_per_month")
8181
"date_histogram": {
8282
"field": "startedOn",
8383
"interval": "month",
84-
"min_doc_count": 1
84+
"min_doc_count": 0
8585
},
8686
"aggs": {
8787
"commits": {

docs/aggregations/pipeline/moving-average/moving-average-linear-aggregation-usage.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ a => a
2323
.DateHistogram("projects_started_per_month", dh => dh
2424
.Field(p => p.StartedOn)
2525
.Interval(DateInterval.Month)
26+
.MinimumDocumentCount(0)
2627
.Aggregations(aa => aa
2728
.Sum("commits", sm => sm
2829
.Field(p => p.NumberOfCommits)
@@ -46,6 +47,7 @@ new DateHistogramAggregation("projects_started_per_month")
4647
{
4748
Field = "startedOn",
4849
Interval = DateInterval.Month,
50+
MinimumDocumentCount = 0,
4951
Aggregations =
5052
new SumAggregation("commits", "numberOfCommits") &&
5153
new MovingAverageAggregation("commits_moving_avg", "commits")
@@ -63,7 +65,8 @@ new DateHistogramAggregation("projects_started_per_month")
6365
"projects_started_per_month": {
6466
"date_histogram": {
6567
"field": "startedOn",
66-
"interval": "month"
68+
"interval": "month",
69+
"min_doc_count": 0
6770
},
6871
"aggs": {
6972
"commits": {

docs/aggregations/pipeline/moving-average/moving-average-simple-aggregation-usage.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ a => a
2323
.DateHistogram("projects_started_per_month", dh => dh
2424
.Field(p => p.StartedOn)
2525
.Interval(DateInterval.Month)
26+
.MinimumDocumentCount(0)
2627
.Aggregations(aa => aa
2728
.Sum("commits", sm => sm
2829
.Field(p => p.NumberOfCommits)
@@ -48,6 +49,7 @@ new DateHistogramAggregation("projects_started_per_month")
4849
{
4950
Field = "startedOn",
5051
Interval = DateInterval.Month,
52+
MinimumDocumentCount = 0,
5153
Aggregations =
5254
new SumAggregation("commits", "numberOfCommits")
5355
&& new MovingAverageAggregation("commits_moving_avg", "commits")
@@ -67,7 +69,8 @@ new DateHistogramAggregation("projects_started_per_month")
6769
"projects_started_per_month": {
6870
"date_histogram": {
6971
"field": "startedOn",
70-
"interval": "month"
72+
"interval": "month",
73+
"min_doc_count": 0
7174
},
7275
"aggs": {
7376
"commits": {

docs/aggregations/pipeline/moving-function/moving-function-aggregation-usage.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ a => a
3333
.DateHistogram("projects_started_per_month", dh => dh
3434
.Field(p => p.StartedOn)
3535
.Interval(DateInterval.Month)
36+
.MinimumDocumentCount(0)
3637
.Aggregations(aa => aa
3738
.Sum("commits", sm => sm
3839
.Field(p => p.NumberOfCommits)
@@ -55,6 +56,7 @@ new DateHistogramAggregation("projects_started_per_month")
5556
{
5657
Field = "startedOn",
5758
Interval = DateInterval.Month,
59+
MinimumDocumentCount = 0,
5860
Aggregations =
5961
new SumAggregation("commits", "numberOfCommits")
6062
&& new MovingFunctionAggregation("commits_moving_avg", "commits")
@@ -73,7 +75,8 @@ new DateHistogramAggregation("projects_started_per_month")
7375
"projects_started_per_month": {
7476
"date_histogram": {
7577
"field": "startedOn",
76-
"interval": "month"
78+
"interval": "month",
79+
"min_doc_count": 0
7780
},
7881
"aggs": {
7982
"commits": {

docs/aggregations/pipeline/serial-differencing/serial-differencing-aggregation-usage.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a => a
2323
.DateHistogram("projects_started_per_month", dh => dh
2424
.Field(p => p.StartedOn)
2525
.Interval(DateInterval.Month)
26-
.MinimumDocumentCount(1)
26+
.MinimumDocumentCount(0)
2727
.Aggregations(aa => aa
2828
.Sum("commits", sm => sm
2929
.Field(p => p.NumberOfCommits)
@@ -44,7 +44,7 @@ new DateHistogramAggregation("projects_started_per_month")
4444
{
4545
Field = "startedOn",
4646
Interval = DateInterval.Month,
47-
MinimumDocumentCount = 1,
47+
MinimumDocumentCount = 0,
4848
Aggregations =
4949
new SumAggregation("commits", "numberOfCommits")
5050
&& new SerialDifferencingAggregation("second_difference", "commits")
@@ -62,7 +62,7 @@ new DateHistogramAggregation("projects_started_per_month")
6262
"date_histogram": {
6363
"field": "startedOn",
6464
"interval": "month",
65-
"min_doc_count": 1
65+
"min_doc_count": 0
6666
},
6767
"aggs": {
6868
"commits": {

docs/aggregations/writing-aggregations.asciidoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ return s => s
232232
);
233233
----
234234
<1> a list of aggregation functions to apply
235-
236235
<2> Using LINQ's `Aggregate()` function to accumulate/apply all of the aggregation functions
237236

238237
[[handling-aggregate-response]]
@@ -276,6 +275,5 @@ var maxPerChild = childAggregation.Max("max_per_child");
276275
maxPerChild.Should().NotBeNull(); <2>
277276
----
278277
<1> Do something with the average per child. Here we just assert it's not null
279-
280278
<2> Do something with the max per child. Here we just assert it's not null
281279

0 commit comments

Comments
 (0)