diff --git a/.paket/Paket.Restore.targets b/.paket/Paket.Restore.targets
index 6be03acb32f..305e736c45c 100644
--- a/.paket/Paket.Restore.targets
+++ b/.paket/Paket.Restore.targets
@@ -144,11 +144,12 @@
$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4])
+ $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[5])%(PaketReferencesFileLinesInfo.PackageVersion)All
- runtime
+ runtimetrue
diff --git a/build/scripts/Commandline.fsx b/build/scripts/Commandline.fsx
index d2d068e6d39..43ba81bf304 100644
--- a/build/scripts/Commandline.fsx
+++ b/build/scripts/Commandline.fsx
@@ -41,6 +41,7 @@ NOTE: both the `test` and `integrate` targets can be suffixed with `-all` to for
Execution hints can be provided anywhere on the command line
- skiptests : skip running tests as part of the target chain
- skipdocs : skip generating documentation
+- docs: : the branch name B to use when generating documentation
- seed: : provide a seed to run the tests with.
- random:<:B> : sets random K to bool B if if B is omitted will default to true
K can be: sourceserializer, typedkeys or oldconnection (only valid on windows)
diff --git a/build/scripts/Targets.fsx b/build/scripts/Targets.fsx
index 4b976f1aa1a..d897172070c 100644
--- a/build/scripts/Targets.fsx
+++ b/build/scripts/Targets.fsx
@@ -33,6 +33,7 @@ open Commandline
open Differ
open Differ.Differ
open Fake.IO
+open Octokit
Commandline.parse()
@@ -107,14 +108,22 @@ Target "Cluster" <| fun _ ->
let clusterVersion = getBuildParam "clusterVersion"
let testsProjectDirectory = Path.Combine(Path.GetFullPath(Paths.Output("Tests.ClusterLauncher")), "netcoreapp2.1")
let tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
+
+ let sourceDir = Paths.Source("Tests/Tests.Configuration");
+ let defaultYaml = Path.Combine(sourceDir, "tests.default.yaml");
+ let userYaml = Path.Combine(sourceDir, "tests.yaml");
+ let e f = File.Exists f;
+ match ((e userYaml), (e defaultYaml)) with
+ | (true, _) -> setProcessEnvironVar "NEST_YAML_FILE" (Path.GetFullPath(userYaml))
+ | (_, true) -> setProcessEnvironVar "NEST_YAML_FILE" (Path.GetFullPath(defaultYaml))
+ | _ -> ignore()
+
Shell.copyDir tempDir testsProjectDirectory (fun s -> true)
- trace testsProjectDirectory
- trace tempDir
let command = sprintf "%s %s" clusterName clusterVersion
DotNetCli.RunCommand(fun p ->
{ p with
WorkingDir = tempDir;
- TimeOut = TimeSpan.FromMinutes(60.)
+ TimeOut = TimeSpan.FromMinutes(120.)
}) (sprintf "%s %s" (Path.Combine(tempDir, "Tests.ClusterLauncher.dll")) command)
Shell.deleteDir tempDir
diff --git a/docs/aggregations.asciidoc b/docs/aggregations.asciidoc
index abff0886a26..cb972ac8e34 100644
--- a/docs/aggregations.asciidoc
+++ b/docs/aggregations.asciidoc
@@ -4,7 +4,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/aggregations.asciidoc.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/Tests/aggregations.asciidoc.
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!
////
@@ -62,6 +62,8 @@ The values are typically extracted from the fields of the document (using the fi
* <>
+* <>
+
See the Elasticsearch documentation on {ref_current}/search-aggregations-metrics.html[Metric aggregations] for more details.
:includes-from-dirs: aggregations/metric
@@ -94,6 +96,8 @@ include::aggregations/metric/top-hits/top-hits-aggregation-usage.asciidoc[]
include::aggregations/metric/value-count/value-count-aggregation-usage.asciidoc[]
+include::aggregations/metric/weighted-average/weighted-average-aggregation-usage.asciidoc[]
+
[[bucket-aggregations]]
== Bucket Aggregations
@@ -233,6 +237,8 @@ There are many different types of pipeline aggregation, each computing different
* <>
+* <>
+
* <>
* <>
@@ -273,6 +279,8 @@ include::aggregations/pipeline/moving-average/moving-average-linear-aggregation-
include::aggregations/pipeline/moving-average/moving-average-simple-aggregation-usage.asciidoc[]
+include::aggregations/pipeline/moving-function/moving-function-aggregation-usage.asciidoc[]
+
include::aggregations/pipeline/percentiles-bucket/percentiles-bucket-aggregation-usage.asciidoc[]
include::aggregations/pipeline/serial-differencing/serial-differencing-aggregation-usage.asciidoc[]
diff --git a/docs/aggregations/aggregation-meta-usage.asciidoc b/docs/aggregations/aggregation-meta-usage.asciidoc
index e2e9d410d7b..9189c0d443a 100644
--- a/docs/aggregations/aggregation-meta-usage.asciidoc
+++ b/docs/aggregations/aggregation-meta-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/AggregationMetaUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/AggregationMetaUsageTests.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/aggregations/bucket/adjacency-matrix/adjacency-matrix-usage.asciidoc b/docs/aggregations/bucket/adjacency-matrix/adjacency-matrix-usage.asciidoc
index 7c4bd943545..ce480f012b5 100644
--- a/docs/aggregations/bucket/adjacency-matrix/adjacency-matrix-usage.asciidoc
+++ b/docs/aggregations/bucket/adjacency-matrix/adjacency-matrix-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/AdjacencyMatrix/AdjacencyMatrixUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/AdjacencyMatrix/AdjacencyMatrixUsageTests.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/aggregations/bucket/children/children-aggregation-usage.asciidoc b/docs/aggregations/bucket/children/children-aggregation-usage.asciidoc
index 61b4fee9f1b..c43aebf5f48 100644
--- a/docs/aggregations/bucket/children/children-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/children/children-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Children/ChildrenAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Children/ChildrenAggregationUsageTests.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/aggregations/bucket/composite/composite-aggregation-usage.asciidoc b/docs/aggregations/bucket/composite/composite-aggregation-usage.asciidoc
index e24f4ea3c3b..f3cfc85ca3d 100644
--- a/docs/aggregations/bucket/composite/composite-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/composite/composite-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Composite/CompositeAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Composite/CompositeAggregationUsageTests.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!
////
@@ -145,7 +145,7 @@ new CompositeAggregation("my_buckets")
==== Handling Responses
-Each Composite aggregation bucket key is an `CompositeKey`, a specialized
+Each Composite aggregation bucket key is a `CompositeKey` type, a specialized
`IReadOnlyDictionary` type with methods to convert values to supported types
[source,csharp]
@@ -185,3 +185,133 @@ foreach (var item in composite.Buckets)
}
----
+[float]
+=== Missing buckets
+
+By default documents without a value for a given source are ignored.
+It is possible to include them in the response by setting missing_bucket to `true` (defaults to `false`):
+
+NOTE: Only available in Elasticsearch 6.4.0+
+
+==== Fluent DSL example
+
+[source,csharp]
+----
+a => a
+.Composite("my_buckets", date => date
+ .Sources(s => s
+ .Terms("branches", t => t
+ .Field(f => f.Branches.Suffix("keyword"))
+ .MissingBucket()
+ .Order(SortOrder.Ascending)
+ )
+ )
+ .Aggregations(childAggs => childAggs
+ .Nested("project_tags", n => n
+ .Path(p => p.Tags)
+ .Aggregations(nestedAggs => nestedAggs
+ .Terms("tags", avg => avg.Field(p => p.Tags.First().Name))
+ )
+ )
+ )
+)
+----
+
+==== Object Initializer syntax example
+
+[source,csharp]
+----
+new CompositeAggregation("my_buckets")
+{
+ Sources = new List
+ {
+ new TermsCompositeAggregationSource("branches")
+ {
+ Field = Infer.Field(f => f.Branches.Suffix("keyword")),
+ MissingBucket = true,
+ Order = SortOrder.Ascending
+ }
+ },
+ Aggregations = new NestedAggregation("project_tags")
+ {
+ Path = Field(p => p.Tags),
+ Aggregations = new TermsAggregation("tags")
+ {
+ Field = Field(p => p.Tags.First().Name)
+ }
+ }
+}
+----
+
+[source,javascript]
+.Example json output
+----
+{
+ "my_buckets": {
+ "composite": {
+ "sources": [
+ {
+ "branches": {
+ "terms": {
+ "field": "branches.keyword",
+ "order": "asc",
+ "missing_bucket": true
+ }
+ }
+ }
+ ]
+ },
+ "aggs": {
+ "project_tags": {
+ "nested": {
+ "path": "tags"
+ },
+ "aggs": {
+ "tags": {
+ "terms": {
+ "field": "tags.name"
+ }
+ }
+ }
+ }
+ }
+ }
+}
+----
+
+==== Handling Responses
+
+Each Composite aggregation bucket key is an `CompositeKey`, a specialized
+`IReadOnlyDictionary` type with methods to convert values to supported types
+
+[source,csharp]
+----
+response.ShouldBeValid();
+
+var composite = response.Aggregations.Composite("my_buckets");
+composite.Should().NotBeNull();
+composite.Buckets.Should().NotBeNullOrEmpty();
+composite.AfterKey.Should().NotBeNull();
+
+if (TestConfiguration.Instance.InRange(">=6.3.0"))
+ composite.AfterKey.Should().HaveCount(1).And.ContainKeys("branches");
+
+var i = 0;
+foreach (var item in composite.Buckets)
+{
+ var key = item.Key;
+ key.Should().NotBeNull();
+
+ key.TryGetValue("branches", out string branches).Should().BeTrue("expected to find 'branches' in composite bucket");
+ if (i == 0) branches.Should().BeNull("First key should be null as we expect to have some projects with no branches");
+ else branches.Should().NotBeNullOrEmpty();
+
+ var nested = item.Nested("project_tags");
+ nested.Should().NotBeNull();
+
+ var nestedTerms = nested.Terms("tags");
+ nestedTerms.Buckets.Count.Should().BeGreaterThan(0);
+ i++;
+}
+----
+
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 fbf3bca19dd..bcc387119e3 100644
--- a/docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/DateHistogram/DateHistogramAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/DateHistogram/DateHistogramAggregationUsageTests.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!
////
@@ -114,14 +114,12 @@ new DateHistogramAggregation("projects_started_per_month")
}
----
-=== Handling responses
+==== Handling responses
The `AggregateDictionary found on `.Aggregations` on `ISearchResponse` has several helper methods
so we can fetch our aggregation results easily in the correct type.
<>
-==== Handling Responses
-
[source,csharp]
----
response.ShouldBeValid();
diff --git a/docs/aggregations/bucket/date-range/date-range-aggregation-usage.asciidoc b/docs/aggregations/bucket/date-range/date-range-aggregation-usage.asciidoc
index e6ddd0e6cf1..44c1a767139 100644
--- a/docs/aggregations/bucket/date-range/date-range-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/date-range/date-range-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/DateRange/DateRangeAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/DateRange/DateRangeAggregationUsageTests.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!
////
@@ -93,14 +93,12 @@ new DateRangeAggregation("projects_date_ranges")
}
----
-=== Handling Responses
+==== Handling Responses
The `AggregateDictionary found on `.Aggregations` on `ISearchResponse` has several helper methods
so we can fetch our aggregation results easily in the correct type.
<>
-==== Handling Responses
-
[source,csharp]
----
response.ShouldBeValid();
diff --git a/docs/aggregations/bucket/filter/filter-aggregation-usage.asciidoc b/docs/aggregations/bucket/filter/filter-aggregation-usage.asciidoc
index 165c77bf614..46006f205a1 100644
--- a/docs/aggregations/bucket/filter/filter-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/filter/filter-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Filter/FilterAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Filter/FilterAggregationUsageTests.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!
////
@@ -68,14 +68,12 @@ new FilterAggregation("bethels_projects")
}
----
-=== Handling Responses
+==== Handling Responses
The `AggregateDictionary found on `.Aggregations` on `ISearchResponse` has several helper methods
so we can fetch our aggregation results easily in the correct type.
<>
-==== Handling Responses
-
[source,csharp]
----
response.ShouldBeValid();
@@ -89,7 +87,7 @@ tags.Buckets.Should().NotBeEmpty();
----
[float]
-== Empty Filter
+=== Empty Filter
When the collection of filters is empty or all are conditionless, NEST will serialize them
to an empty object.
@@ -138,54 +136,3 @@ new FilterAggregation("empty_filter")
response.ShouldNotBeValid();
----
-==== Fluent DSL example
-
-[source,csharp]
-----
-a => a
-.Filter(_aggName, date => date
- .Filter(f => f
- .Script(b => b
- .Source(_ctxNumberofCommits)
- )
- )
-)
-----
-
-==== Object Initializer syntax example
-
-[source,csharp]
-----
-new FilterAggregation(_aggName)
-{
- Filter = new ScriptQuery
- {
- Source = _ctxNumberofCommits
- }
-}
-----
-
-[source,javascript]
-.Example json output
-----
-{
- "script_filter": {
- "filter": {
- "script": {
- "script": {
- "source": "_source.numberOfCommits > 0"
- }
- }
- }
- }
-}
-----
-
-==== Handling Responses
-
-[source,csharp]
-----
-response.ShouldBeValid();
-response.Aggregations.Filter(_aggName).DocCount.Should().BeGreaterThan(0);
-----
-
diff --git a/docs/aggregations/bucket/filters/filters-aggregation-usage.asciidoc b/docs/aggregations/bucket/filters/filters-aggregation-usage.asciidoc
index 130c9cc102f..f390924a20f 100644
--- a/docs/aggregations/bucket/filters/filters-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/filters/filters-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Filters/FiltersAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Filters/FiltersAggregationUsageTests.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/aggregations/bucket/geo-distance/geo-distance-aggregation-usage.asciidoc b/docs/aggregations/bucket/geo-distance/geo-distance-aggregation-usage.asciidoc
index 9d09d2e8e58..1a331b2b37e 100644
--- a/docs/aggregations/bucket/geo-distance/geo-distance-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/geo-distance/geo-distance-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/GeoDistance/GeoDistanceAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/GeoDistance/GeoDistanceAggregationUsageTests.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/aggregations/bucket/geo-hash-grid/geo-hash-grid-aggregation-usage.asciidoc b/docs/aggregations/bucket/geo-hash-grid/geo-hash-grid-aggregation-usage.asciidoc
index f2719513d02..6cf331af8dc 100644
--- a/docs/aggregations/bucket/geo-hash-grid/geo-hash-grid-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/geo-hash-grid/geo-hash-grid-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/GeoHashGrid/GeoHashGridAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/GeoHashGrid/GeoHashGridAggregationUsageTests.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/aggregations/bucket/global/global-aggregation-usage.asciidoc b/docs/aggregations/bucket/global/global-aggregation-usage.asciidoc
index e89ca4f7e7e..a95450bb0ba 100644
--- a/docs/aggregations/bucket/global/global-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/global/global-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Global/GlobalAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Global/GlobalAggregationUsageTests.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/aggregations/bucket/histogram/histogram-aggregation-usage.asciidoc b/docs/aggregations/bucket/histogram/histogram-aggregation-usage.asciidoc
index ffae47dccb0..3166cd582cb 100644
--- a/docs/aggregations/bucket/histogram/histogram-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/histogram/histogram-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Histogram/HistogramAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Histogram/HistogramAggregationUsageTests.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/aggregations/bucket/ip-range/ip-range-aggregation-usage.asciidoc b/docs/aggregations/bucket/ip-range/ip-range-aggregation-usage.asciidoc
index ad943cba723..6a194e4d12a 100644
--- a/docs/aggregations/bucket/ip-range/ip-range-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/ip-range/ip-range-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/IpRange/IpRangeAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/IpRange/IpRangeAggregationUsageTests.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!
////
@@ -74,6 +74,11 @@ ipRanges.Should().NotBeNull();
ipRanges.Buckets.Should().NotBeNull();
ipRanges.Buckets.Count.Should().BeGreaterThan(0);
foreach (var range in ipRanges.Buckets)
+{
+ if (TestConfiguration.Instance.InRange("6.4.0"))
+ range.Key.Should().NotBeNullOrEmpty();
+
range.DocCount.Should().BeGreaterThan(0);
+}
----
diff --git a/docs/aggregations/bucket/missing/missing-aggregation-usage.asciidoc b/docs/aggregations/bucket/missing/missing-aggregation-usage.asciidoc
index 6deee1841cc..844ff1f59a2 100644
--- a/docs/aggregations/bucket/missing/missing-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/missing/missing-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Missing/MissingAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Missing/MissingAggregationUsageTests.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/aggregations/bucket/nested/nested-aggregation-usage.asciidoc b/docs/aggregations/bucket/nested/nested-aggregation-usage.asciidoc
index 494054c670f..b20809029d2 100644
--- a/docs/aggregations/bucket/nested/nested-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/nested/nested-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Nested/NestedAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Nested/NestedAggregationUsageTests.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/aggregations/bucket/range/range-aggregation-usage.asciidoc b/docs/aggregations/bucket/range/range-aggregation-usage.asciidoc
index bba3d712169..6aea91a5148 100644
--- a/docs/aggregations/bucket/range/range-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/range/range-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Range/RangeAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Range/RangeAggregationUsageTests.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/aggregations/bucket/reverse-nested/reverse-nested-aggregation-usage.asciidoc b/docs/aggregations/bucket/reverse-nested/reverse-nested-aggregation-usage.asciidoc
index 83c685ee576..680c9555f50 100644
--- a/docs/aggregations/bucket/reverse-nested/reverse-nested-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/reverse-nested/reverse-nested-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/ReverseNested/ReverseNestedAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/ReverseNested/ReverseNestedAggregationUsageTests.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/aggregations/bucket/sampler/sampler-aggregation-usage.asciidoc b/docs/aggregations/bucket/sampler/sampler-aggregation-usage.asciidoc
index f60c99a425a..81523c29bc9 100644
--- a/docs/aggregations/bucket/sampler/sampler-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/sampler/sampler-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Sampler/SamplerAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Sampler/SamplerAggregationUsageTests.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/aggregations/bucket/significant-terms/significant-terms-aggregation-usage.asciidoc b/docs/aggregations/bucket/significant-terms/significant-terms-aggregation-usage.asciidoc
index 34041eed5d2..b41859e4842 100644
--- a/docs/aggregations/bucket/significant-terms/significant-terms-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/significant-terms/significant-terms-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/SignificantTerms/SignificantTermsAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/SignificantTerms/SignificantTermsAggregationUsageTests.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/aggregations/bucket/significant-text/significant-text-aggregation-usage.asciidoc b/docs/aggregations/bucket/significant-text/significant-text-aggregation-usage.asciidoc
index 3c9ae8fdb71..0071155396a 100644
--- a/docs/aggregations/bucket/significant-text/significant-text-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/significant-text/significant-text-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/SignificantText/SignificantTextAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/SignificantText/SignificantTextAggregationUsageTests.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/aggregations/bucket/terms/terms-aggregation-usage.asciidoc b/docs/aggregations/bucket/terms/terms-aggregation-usage.asciidoc
index 9a6e0c23539..ddb12eb82e4 100644
--- a/docs/aggregations/bucket/terms/terms-aggregation-usage.asciidoc
+++ b/docs/aggregations/bucket/terms/terms-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Bucket/Terms/TermsAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Bucket/Terms/TermsAggregationUsageTests.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/aggregations/matrix/matrix-stats/matrix-stats-aggregation-usage.asciidoc b/docs/aggregations/matrix/matrix-stats/matrix-stats-aggregation-usage.asciidoc
index b8642ce1d93..4206542c57a 100644
--- a/docs/aggregations/matrix/matrix-stats/matrix-stats-aggregation-usage.asciidoc
+++ b/docs/aggregations/matrix/matrix-stats/matrix-stats-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Matrix/MatrixStats/MatrixStatsAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Matrix/MatrixStats/MatrixStatsAggregationUsageTests.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/aggregations/metric/average/average-aggregation-usage.asciidoc b/docs/aggregations/metric/average/average-aggregation-usage.asciidoc
index 37ddb83eaaf..1b36b9599b9 100644
--- a/docs/aggregations/metric/average/average-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/average/average-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/Average/AverageAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/Average/AverageAggregationUsageTests.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/aggregations/metric/cardinality/cardinality-aggregation-usage.asciidoc b/docs/aggregations/metric/cardinality/cardinality-aggregation-usage.asciidoc
index d86abff0a51..99660d5328e 100644
--- a/docs/aggregations/metric/cardinality/cardinality-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/cardinality/cardinality-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/Cardinality/CardinalityAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/Cardinality/CardinalityAggregationUsageTests.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/aggregations/metric/extended-stats/extended-stats-aggregation-usage.asciidoc b/docs/aggregations/metric/extended-stats/extended-stats-aggregation-usage.asciidoc
index 1868930bd4c..80dba1bb750 100644
--- a/docs/aggregations/metric/extended-stats/extended-stats-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/extended-stats/extended-stats-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/ExtendedStats/ExtendedStatsAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/ExtendedStats/ExtendedStatsAggregationUsageTests.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/aggregations/metric/geo-bounds/geo-bounds-aggregation-usage.asciidoc b/docs/aggregations/metric/geo-bounds/geo-bounds-aggregation-usage.asciidoc
index f7aa2ee0e7b..e2e8542456c 100644
--- a/docs/aggregations/metric/geo-bounds/geo-bounds-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/geo-bounds/geo-bounds-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/GeoBounds/GeoBoundsAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/GeoBounds/GeoBoundsAggregationUsageTests.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/aggregations/metric/geo-centroid/geo-centroid-aggregation-usage.asciidoc b/docs/aggregations/metric/geo-centroid/geo-centroid-aggregation-usage.asciidoc
index c5bc2b29675..959375585d7 100644
--- a/docs/aggregations/metric/geo-centroid/geo-centroid-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/geo-centroid/geo-centroid-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/GeoCentroid/GeoCentroidAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/GeoCentroid/GeoCentroidAggregationUsageTests.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/aggregations/metric/max/max-aggregation-usage.asciidoc b/docs/aggregations/metric/max/max-aggregation-usage.asciidoc
index db2ce66e7ae..4af424e4cfa 100644
--- a/docs/aggregations/metric/max/max-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/max/max-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/Max/MaxAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/Max/MaxAggregationUsageTests.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/aggregations/metric/min/min-aggregation-usage.asciidoc b/docs/aggregations/metric/min/min-aggregation-usage.asciidoc
index 6b77aac0845..2ead933e52b 100644
--- a/docs/aggregations/metric/min/min-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/min/min-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/Min/MinAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/Min/MinAggregationUsageTests.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/aggregations/metric/percentile-ranks/percentile-ranks-aggregation-usage.asciidoc b/docs/aggregations/metric/percentile-ranks/percentile-ranks-aggregation-usage.asciidoc
index aa45b2afa25..51f26a3218f 100644
--- a/docs/aggregations/metric/percentile-ranks/percentile-ranks-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/percentile-ranks/percentile-ranks-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/PercentileRanks/PercentileRanksAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/PercentileRanks/PercentileRanksAggregationUsageTests.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/aggregations/metric/percentiles/percentiles-aggregation-usage.asciidoc b/docs/aggregations/metric/percentiles/percentiles-aggregation-usage.asciidoc
index ea2c9c25443..442c55098a1 100644
--- a/docs/aggregations/metric/percentiles/percentiles-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/percentiles/percentiles-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/Percentiles/PercentilesAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/Percentiles/PercentilesAggregationUsageTests.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/aggregations/metric/scripted-metric/scripted-metric-aggregation-usage.asciidoc b/docs/aggregations/metric/scripted-metric/scripted-metric-aggregation-usage.asciidoc
index 211c1e675f4..6f9d6affa1a 100644
--- a/docs/aggregations/metric/scripted-metric/scripted-metric-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/scripted-metric/scripted-metric-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/ScriptedMetric/ScriptedMetricAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/ScriptedMetric/ScriptedMetricAggregationUsageTests.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/aggregations/metric/stats/stats-aggregation-usage.asciidoc b/docs/aggregations/metric/stats/stats-aggregation-usage.asciidoc
index 2dc8c00ae03..5006c2a4ed9 100644
--- a/docs/aggregations/metric/stats/stats-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/stats/stats-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/Stats/StatsAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/Stats/StatsAggregationUsageTests.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/aggregations/metric/sum/sum-aggregation-usage.asciidoc b/docs/aggregations/metric/sum/sum-aggregation-usage.asciidoc
index c2ef62a4a1d..25d26206072 100644
--- a/docs/aggregations/metric/sum/sum-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/sum/sum-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/Sum/SumAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/Sum/SumAggregationUsageTests.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/aggregations/metric/top-hits/top-hits-aggregation-usage.asciidoc b/docs/aggregations/metric/top-hits/top-hits-aggregation-usage.asciidoc
index 1a0352fef19..f90bfe0f50e 100644
--- a/docs/aggregations/metric/top-hits/top-hits-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/top-hits/top-hits-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/TopHits/TopHitsAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/TopHits/TopHitsAggregationUsageTests.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/aggregations/metric/value-count/value-count-aggregation-usage.asciidoc b/docs/aggregations/metric/value-count/value-count-aggregation-usage.asciidoc
index 756562aa7bf..624d1e02632 100644
--- a/docs/aggregations/metric/value-count/value-count-aggregation-usage.asciidoc
+++ b/docs/aggregations/metric/value-count/value-count-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Metric/ValueCount/ValueCountAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/ValueCount/ValueCountAggregationUsageTests.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/aggregations/metric/weighted-average/weighted-average-aggregation-usage.asciidoc b/docs/aggregations/metric/weighted-average/weighted-average-aggregation-usage.asciidoc
new file mode 100644
index 00000000000..d92de5fe9dc
--- /dev/null
+++ b/docs/aggregations/metric/weighted-average/weighted-average-aggregation-usage.asciidoc
@@ -0,0 +1,83 @@
+:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/6.3
+
+:github: https://github.com/elastic/elasticsearch-net
+
+:nuget: https://www.nuget.org/packages
+
+////
+IMPORTANT NOTE
+==============
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Metric/WeightedAverage/WeightedAverageAggregationUsageTests.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!
+////
+
+[[weighted-average-aggregation-usage]]
+=== Weighted Average Aggregation Usage
+
+A single-value metrics aggregation that computes the weighted average of numeric values that are extracted
+from the aggregated documents. These values can be extracted either from specific numeric fields in the documents.
+When calculating a regular average, each datapoint has an equal "weight" i.e. it contributes equally to the final
+value. Weighted averages, on the other hand, weight each datapoint differently. The amount that each
+datapoint contributes to the final value is extracted from the document, or provided by a script.
+
+Be sure to read the Elasticsearch documentation on {ref_current}/search-aggregations-metrics-weight-avg-aggregation.html[Weighted Avg Aggregation]
+
+==== Fluent DSL example
+
+[source,csharp]
+----
+a => a
+.WeightedAverage("weighted_avg_commits", avg => avg
+ .Value(v => v.Field(p => p.NumberOfCommits).Missing(0))
+ .Weight(w => w.Script("doc.numberOfContributors.value + 1"))
+ .ValueType(ValueType.Long)
+)
+----
+
+==== Object Initializer syntax example
+
+[source,csharp]
+----
+new WeightedAverageAggregation("weighted_avg_commits")
+{
+ Value = new WeightedAverageValue(Field(p => p.NumberOfCommits))
+ {
+ Missing = 0
+ },
+ Weight = new WeightedAverageValue(new InlineScript("doc.numberOfContributors.value + 1")),
+ ValueType = ValueType.Long
+}
+----
+
+[source,javascript]
+.Example json output
+----
+{
+ "weighted_avg_commits": {
+ "weighted_avg": {
+ "value": {
+ "field": "numberOfCommits",
+ "missing": 0.0
+ },
+ "weight": {
+ "script": {
+ "source": "doc.numberOfContributors.value + 1"
+ }
+ },
+ "value_type": "long"
+ }
+ }
+}
+----
+
+==== Handling Responses
+
+[source,csharp]
+----
+response.ShouldBeValid();
+var commitsAvg = response.Aggregations.WeightedAverage("weighted_avg_commits");
+commitsAvg.Should().NotBeNull();
+commitsAvg.Value.Should().BeGreaterThan(0);
+----
+
diff --git a/docs/aggregations/pipeline/average-bucket/average-bucket-aggregation-usage.asciidoc b/docs/aggregations/pipeline/average-bucket/average-bucket-aggregation-usage.asciidoc
index 21dd56bab0b..af769c1458e 100644
--- a/docs/aggregations/pipeline/average-bucket/average-bucket-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/average-bucket/average-bucket-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/AverageBucket/AverageBucketAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/AverageBucket/AverageBucketAggregationUsageTests.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/aggregations/pipeline/bucket-script/bucket-script-aggregation-usage.asciidoc b/docs/aggregations/pipeline/bucket-script/bucket-script-aggregation-usage.asciidoc
index 56e36953fbf..28262c354ab 100644
--- a/docs/aggregations/pipeline/bucket-script/bucket-script-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/bucket-script/bucket-script-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/BucketScript/BucketScriptAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/BucketScript/BucketScriptAggregationUsageTests.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/aggregations/pipeline/bucket-selector/bucket-selector-aggregation-usage.asciidoc b/docs/aggregations/pipeline/bucket-selector/bucket-selector-aggregation-usage.asciidoc
index c0c7a234850..9e2bcdb12c5 100644
--- a/docs/aggregations/pipeline/bucket-selector/bucket-selector-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/bucket-selector/bucket-selector-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/BucketSelector/BucketSelectorAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/BucketSelector/BucketSelectorAggregationUsageTests.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/aggregations/pipeline/bucket-sort/bucket-sort-aggregation-usage.asciidoc b/docs/aggregations/pipeline/bucket-sort/bucket-sort-aggregation-usage.asciidoc
index 46a2bd4afd1..009d518e699 100644
--- a/docs/aggregations/pipeline/bucket-sort/bucket-sort-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/bucket-sort/bucket-sort-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/BucketSort/BucketSortAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/BucketSort/BucketSortAggregationUsageTests.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/aggregations/pipeline/cumulative-sum/cumulative-sum-aggregation-usage.asciidoc b/docs/aggregations/pipeline/cumulative-sum/cumulative-sum-aggregation-usage.asciidoc
index 9580e69c21f..06fecaa1d29 100644
--- a/docs/aggregations/pipeline/cumulative-sum/cumulative-sum-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/cumulative-sum/cumulative-sum-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/CumulativeSum/CumulativeSumAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/CumulativeSum/CumulativeSumAggregationUsageTests.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/aggregations/pipeline/derivative/derivative-aggregation-usage.asciidoc b/docs/aggregations/pipeline/derivative/derivative-aggregation-usage.asciidoc
index 3c020db771d..ccbe9099118 100644
--- a/docs/aggregations/pipeline/derivative/derivative-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/derivative/derivative-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/Derivative/DerivativeAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/Derivative/DerivativeAggregationUsageTests.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/aggregations/pipeline/extended-stats-bucket/extended-stats-bucket-aggregation-usage.asciidoc b/docs/aggregations/pipeline/extended-stats-bucket/extended-stats-bucket-aggregation-usage.asciidoc
index f62f70bc77b..45f0e7cb0f5 100644
--- a/docs/aggregations/pipeline/extended-stats-bucket/extended-stats-bucket-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/extended-stats-bucket/extended-stats-bucket-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/ExtendedStatsBucket/ExtendedStatsBucketAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/ExtendedStatsBucket/ExtendedStatsBucketAggregationUsageTests.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/aggregations/pipeline/max-bucket/max-bucket-aggregation-usage.asciidoc b/docs/aggregations/pipeline/max-bucket/max-bucket-aggregation-usage.asciidoc
index c99eea03ec2..0b723726824 100644
--- a/docs/aggregations/pipeline/max-bucket/max-bucket-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/max-bucket/max-bucket-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/MaxBucket/MaxBucketAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MaxBucket/MaxBucketAggregationUsageTests.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/aggregations/pipeline/min-bucket/min-bucket-aggregation-usage.asciidoc b/docs/aggregations/pipeline/min-bucket/min-bucket-aggregation-usage.asciidoc
index 674da0fcc97..e6612650d72 100644
--- a/docs/aggregations/pipeline/min-bucket/min-bucket-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/min-bucket/min-bucket-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/MinBucket/MinBucketAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MinBucket/MinBucketAggregationUsageTests.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/aggregations/pipeline/moving-average/moving-average-ewma-aggregation-usage.asciidoc b/docs/aggregations/pipeline/moving-average/moving-average-ewma-aggregation-usage.asciidoc
index 827840e8533..12d822a80be 100644
--- a/docs/aggregations/pipeline/moving-average/moving-average-ewma-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/moving-average/moving-average-ewma-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageEwmaAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageEwmaAggregationUsageTests.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/aggregations/pipeline/moving-average/moving-average-holt-linear-aggregation-usage.asciidoc b/docs/aggregations/pipeline/moving-average/moving-average-holt-linear-aggregation-usage.asciidoc
index ffaa61a0a06..d9ef63147c1 100644
--- a/docs/aggregations/pipeline/moving-average/moving-average-holt-linear-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/moving-average/moving-average-holt-linear-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageHoltLinearAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageHoltLinearAggregationUsageTests.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/aggregations/pipeline/moving-average/moving-average-holt-winters-aggregation-usage.asciidoc b/docs/aggregations/pipeline/moving-average/moving-average-holt-winters-aggregation-usage.asciidoc
index 33a0350d53e..948d3e75665 100644
--- a/docs/aggregations/pipeline/moving-average/moving-average-holt-winters-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/moving-average/moving-average-holt-winters-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageHoltWintersAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageHoltWintersAggregationUsageTests.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/aggregations/pipeline/moving-average/moving-average-linear-aggregation-usage.asciidoc b/docs/aggregations/pipeline/moving-average/moving-average-linear-aggregation-usage.asciidoc
index 5b5c12871ea..4facd1460ff 100644
--- a/docs/aggregations/pipeline/moving-average/moving-average-linear-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/moving-average/moving-average-linear-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageLinearAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageLinearAggregationUsageTests.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/aggregations/pipeline/moving-average/moving-average-simple-aggregation-usage.asciidoc b/docs/aggregations/pipeline/moving-average/moving-average-simple-aggregation-usage.asciidoc
index 3d8b2d51dc8..998903c7e2b 100644
--- a/docs/aggregations/pipeline/moving-average/moving-average-simple-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/moving-average/moving-average-simple-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageSimpleAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MovingAverage/MovingAverageSimpleAggregationUsageTests.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!
////
@@ -98,7 +98,7 @@ projectsPerMonth.Should().NotBeNull();
projectsPerMonth.Buckets.Should().NotBeNull();
projectsPerMonth.Buckets.Count.Should().BeGreaterThan(0);
-// average not calculated for the first bucket
+// average not calculated for the first bucket so movingAvg.Value is expected to be null there
foreach(var item in projectsPerMonth.Buckets.Skip(1))
{
var movingAvg = item.Sum("commits_moving_avg");
diff --git a/docs/aggregations/pipeline/moving-function/moving-function-aggregation-usage.asciidoc b/docs/aggregations/pipeline/moving-function/moving-function-aggregation-usage.asciidoc
new file mode 100644
index 00000000000..ce677e50fee
--- /dev/null
+++ b/docs/aggregations/pipeline/moving-function/moving-function-aggregation-usage.asciidoc
@@ -0,0 +1,103 @@
+:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/6.3
+
+:github: https://github.com/elastic/elasticsearch-net
+
+:nuget: https://www.nuget.org/packages
+
+////
+IMPORTANT NOTE
+==============
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/MovingFunction/MovingFunctionAggregationUsageTests.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!
+////
+
+[[moving-function-aggregation-usage]]
+=== Moving Function Aggregation Usage
+
+==== Fluent DSL example
+
+[source,csharp]
+----
+a => a
+.DateHistogram("projects_started_per_month", dh => dh
+ .Field(p => p.StartedOn)
+ .Interval(DateInterval.Month)
+ .Aggregations(aa => aa
+ .Sum("commits", sm => sm
+ .Field(p => p.NumberOfCommits)
+ )
+ .MovingFunction("commits_moving_avg", mv => mv
+ .BucketsPath("commits")
+ .Window(30)
+ .Script("MovingFunctions.unweightedAvg(values)")
+ )
+ )
+)
+----
+
+==== Object Initializer syntax example
+
+[source,csharp]
+----
+new DateHistogramAggregation("projects_started_per_month")
+{
+ Field = "startedOn",
+ Interval = DateInterval.Month,
+ Aggregations =
+ new SumAggregation("commits", "numberOfCommits")
+ && new MovingFunctionAggregation("commits_moving_avg", "commits")
+ {
+ Window = 30,
+ Script = "MovingFunctions.unweightedAvg(values)"
+ }
+}
+----
+
+[source,javascript]
+.Example json output
+----
+{
+ "projects_started_per_month": {
+ "date_histogram": {
+ "field": "startedOn",
+ "interval": "month"
+ },
+ "aggs": {
+ "commits": {
+ "sum": {
+ "field": "numberOfCommits"
+ }
+ },
+ "commits_moving_avg": {
+ "moving_fn": {
+ "buckets_path": "commits",
+ "window": 30,
+ "script": "MovingFunctions.unweightedAvg(values)"
+ }
+ }
+ }
+ }
+}
+----
+
+==== Handling Responses
+
+[source,csharp]
+----
+response.ShouldBeValid();
+
+var projectsPerMonth = response.Aggregations.DateHistogram("projects_started_per_month");
+projectsPerMonth.Should().NotBeNull();
+projectsPerMonth.Buckets.Should().NotBeNull();
+projectsPerMonth.Buckets.Count.Should().BeGreaterThan(0);
+
+// average not calculated for the first bucket
+foreach(var item in projectsPerMonth.Buckets.Skip(1))
+{
+ var movingAvg = item.Sum("commits_moving_avg");
+ movingAvg.Should().NotBeNull();
+ movingAvg.Value.Should().BeGreaterThan(0);
+}
+----
+
diff --git a/docs/aggregations/pipeline/percentiles-bucket/percentiles-bucket-aggregation-usage.asciidoc b/docs/aggregations/pipeline/percentiles-bucket/percentiles-bucket-aggregation-usage.asciidoc
index b69bf14431d..6fd9e399732 100644
--- a/docs/aggregations/pipeline/percentiles-bucket/percentiles-bucket-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/percentiles-bucket/percentiles-bucket-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/PercentilesBucket/PercentilesBucketAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/PercentilesBucket/PercentilesBucketAggregationUsageTests.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/aggregations/pipeline/serial-differencing/serial-differencing-aggregation-usage.asciidoc b/docs/aggregations/pipeline/serial-differencing/serial-differencing-aggregation-usage.asciidoc
index fd74a430cd7..50b12a23d50 100644
--- a/docs/aggregations/pipeline/serial-differencing/serial-differencing-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/serial-differencing/serial-differencing-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/SerialDifferencing/SerialDifferencingAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/SerialDifferencing/SerialDifferencingAggregationUsageTests.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/aggregations/pipeline/stats-bucket/stats-bucket-aggregation-usage.asciidoc b/docs/aggregations/pipeline/stats-bucket/stats-bucket-aggregation-usage.asciidoc
index bea7b976b3c..cafd4571272 100644
--- a/docs/aggregations/pipeline/stats-bucket/stats-bucket-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/stats-bucket/stats-bucket-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/StatsBucket/StatsBucketAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/StatsBucket/StatsBucketAggregationUsageTests.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/aggregations/pipeline/sum-bucket/sum-bucket-aggregation-usage.asciidoc b/docs/aggregations/pipeline/sum-bucket/sum-bucket-aggregation-usage.asciidoc
index 0c67c66f385..2851ab4a455 100644
--- a/docs/aggregations/pipeline/sum-bucket/sum-bucket-aggregation-usage.asciidoc
+++ b/docs/aggregations/pipeline/sum-bucket/sum-bucket-aggregation-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/Pipeline/SumBucket/SumBucketAggregationUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/Pipeline/SumBucket/SumBucketAggregationUsageTests.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/aggregations/reserved-aggregation-names.asciidoc b/docs/aggregations/reserved-aggregation-names.asciidoc
index c4200297e7a..d790d39479c 100644
--- a/docs/aggregations/reserved-aggregation-names.asciidoc
+++ b/docs/aggregations/reserved-aggregation-names.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/ReservedAggregationNames.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/ReservedAggregationNames.doc.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/aggregations/writing-aggregations.asciidoc b/docs/aggregations/writing-aggregations.asciidoc
index 2d9d0001eb3..090fd7c71da 100644
--- a/docs/aggregations/writing-aggregations.asciidoc
+++ b/docs/aggregations/writing-aggregations.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Aggregations/WritingAggregations.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Aggregations/WritingAggregations.doc.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/analysis/normalizers/normalizer-usage.asciidoc b/docs/analysis/analysis-usage.asciidoc
similarity index 50%
rename from docs/analysis/normalizers/normalizer-usage.asciidoc
rename to docs/analysis/analysis-usage.asciidoc
index 1f71f8d120b..a3e2c5cf20e 100644
--- a/docs/analysis/normalizers/normalizer-usage.asciidoc
+++ b/docs/analysis/analysis-usage.asciidoc
@@ -7,46 +7,18 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Analysis/Normalizers/NormalizerUsageTests.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/Analysis/AnalysisUsageTests.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!
////
-[[normalizer-usage]]
-=== Normalizer Usage
+[[analysis-usage]]
+=== Analysis Usage
==== Fluent DSL example
[source,csharp]
----
-FluentExample
-----
-
-==== Object Initializer syntax example
-
-[source,csharp]
-----
-InitializerExample
-----
-
-[source,javascript]
-.Example json output
-----
-{
- "analysis": {
- "normalizer": {
- "myCustom": {
- "type": "custom",
- "filter": [
- "lowercase",
- "asciifolding"
- ],
- "char_filter": [
- "mapped"
- ]
- }
- }
- }
-}
+Wrap(an => set(an, Apply((t, a) => fluent(a)(a.Name, t))))
----
diff --git a/docs/analysis/analyzers/analyzer-usage.asciidoc b/docs/analysis/analyzers/analyzer-usage.asciidoc
deleted file mode 100644
index 0928d246fee..00000000000
--- a/docs/analysis/analyzers/analyzer-usage.asciidoc
+++ /dev/null
@@ -1,103 +0,0 @@
-:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/6.3
-
-:github: https://github.com/elastic/elasticsearch-net
-
-:nuget: https://www.nuget.org/packages
-
-////
-IMPORTANT NOTE
-==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Analysis/Analyzers/AnalyzerUsageTests.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!
-////
-
-[[analyzer-usage]]
-=== Analyzer Usage
-
-==== Fluent DSL example
-
-[source,csharp]
-----
-FluentExample
-----
-
-==== Object Initializer syntax example
-
-[source,csharp]
-----
-InitializerExample
-----
-
-[source,javascript]
-.Example json output
-----
-{
- "analysis": {
- "analyzer": {
- "default": {
- "type": "keyword"
- },
- "myCustom": {
- "type": "custom",
- "tokenizer": "ng",
- "filter": [
- "myAscii",
- "kstem"
- ],
- "char_filter": [
- "stripMe",
- "patterned"
- ]
- },
- "myKeyword": {
- "type": "keyword"
- },
- "myPattern": {
- "type": "pattern",
- "pattern": "\\w"
- },
- "mySimple": {
- "type": "simple"
- },
- "myLanguage": {
- "type": "dutch"
- },
- "mySnow": {
- "type": "snowball",
- "language": "Dutch"
- },
- "myStandard": {
- "type": "standard",
- "max_token_length": 2
- },
- "myStop": {
- "type": "stop",
- "stopwords_path": "analysis/stopwords.txt"
- },
- "myWhiteSpace": {
- "type": "whitespace"
- },
- "myWhiteSpace2": {
- "type": "whitespace"
- },
- "myFingerprint": {
- "type": "fingerprint",
- "preserve_original": true,
- "separator": ",",
- "max_output_size": 100,
- "stopwords": [
- "a",
- "he",
- "the"
- ]
- },
- "kuro": {
- "type": "kuromoji",
- "mode": "search"
- }
- }
- }
-}
-----
-
diff --git a/docs/analysis/char-filters/char-filter-usage.asciidoc b/docs/analysis/char-filters/char-filter-usage.asciidoc
deleted file mode 100644
index 1c2622dab7f..00000000000
--- a/docs/analysis/char-filters/char-filter-usage.asciidoc
+++ /dev/null
@@ -1,66 +0,0 @@
-:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/6.3
-
-:github: https://github.com/elastic/elasticsearch-net
-
-:nuget: https://www.nuget.org/packages
-
-////
-IMPORTANT NOTE
-==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Analysis/CharFilters/CharFilterUsageTests.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!
-////
-
-[[char-filter-usage]]
-=== Char Filter Usage
-
-==== Fluent DSL example
-
-[source,csharp]
-----
-FluentExample
-----
-
-==== Object Initializer syntax example
-
-[source,csharp]
-----
-InitializerExample
-----
-
-[source,javascript]
-.Example json output
-----
-{
- "analysis": {
- "char_filter": {
- "icun": {
- "mode": "compose",
- "name": "nfkc_cf",
- "type": "icu_normalizer"
- },
- "stripMe": {
- "type": "html_strip"
- },
- "patterned": {
- "pattern": "x",
- "replacement": "y",
- "type": "pattern_replace"
- },
- "mapped": {
- "mappings": [
- "a=>b"
- ],
- "type": "mapping"
- },
- "kmark": {
- "normalize_kanji": true,
- "normalize_kana": true,
- "type": "kuromoji_iteration_mark"
- }
- }
- }
-}
-----
-
diff --git a/docs/analysis/token-filters/token-filter-usage.asciidoc b/docs/analysis/token-filters/token-filter-usage.asciidoc
deleted file mode 100644
index 48dfeef95a1..00000000000
--- a/docs/analysis/token-filters/token-filter-usage.asciidoc
+++ /dev/null
@@ -1,326 +0,0 @@
-:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/6.3
-
-:github: https://github.com/elastic/elasticsearch-net
-
-:nuget: https://www.nuget.org/packages
-
-////
-IMPORTANT NOTE
-==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Analysis/TokenFilters/TokenFilterUsageTests.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!
-////
-
-[[token-filter-usage]]
-=== Token Filter Usage
-
-==== Fluent DSL example
-
-[source,csharp]
-----
-FluentExample
-----
-
-==== Object Initializer syntax example
-
-[source,csharp]
-----
-InitializerExample
-----
-
-[source,javascript]
-.Example json output
-----
-{
- "analysis": {
- "filter": {
- "myAscii": {
- "type": "asciifolding",
- "preserve_original": true
- },
- "myCommonGrams": {
- "type": "common_grams",
- "common_words": [
- "x",
- "y",
- "z"
- ],
- "ignore_case": true,
- "query_mode": true
- },
- "mydp": {
- "type": "delimited_payload_filter",
- "delimiter": "-",
- "encoding": "identity"
- },
- "dcc": {
- "type": "dictionary_decompounder",
- "word_list": [
- "x",
- "y",
- "z"
- ],
- "min_word_size": 2,
- "min_subword_size": 2,
- "max_subword_size": 2,
- "only_longest_match": true
- },
- "etf": {
- "type": "edge_ngram",
- "min_gram": 1,
- "max_gram": 2
- },
- "elision": {
- "type": "elision",
- "articles": [
- "a",
- "b",
- "c"
- ]
- },
- "hunspell": {
- "type": "hunspell",
- "locale": "en_US",
- "dictionary": "path_to_dict",
- "dedup": true,
- "longest_only": true
- },
- "hypdecomp": {
- "type": "hyphenation_decompounder",
- "word_list": [
- "x",
- "y",
- "z"
- ],
- "min_word_size": 2,
- "min_subword_size": 2,
- "max_subword_size": 2,
- "only_longest_match": true,
- "hyphenation_patterns_path": "analysis/fop.xml"
- },
- "keeptypes": {
- "type": "keep_types",
- "types": [
- "",
- ""
- ]
- },
- "icuc": {
- "alternate": "non-ignorable",
- "caseFirst": "lower",
- "caseLevel": true,
- "country": "DE",
- "decomposition": "no",
- "hiraganaQuaternaryMode": true,
- "language": "de",
- "numeric": true,
- "strength": "tertiary",
- "type": "icu_collation",
- "variant": "@collation=phonebook"
- },
- "icuf": {
- "type": "icu_folding",
- "unicodeSetFilter": "[^åäöÅÄÖ]"
- },
- "icun": {
- "name": "nfc",
- "type": "icu_normalizer"
- },
- "icut": {
- "dir": "forward",
- "id": "Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC",
- "type": "icu_transform"
- },
- "keepwords": {
- "type": "keep",
- "keep_words": [
- "a",
- "b",
- "c"
- ],
- "keep_words_case": true
- },
- "marker": {
- "type": "keyword_marker",
- "keywords": [
- "a",
- "b"
- ],
- "ignore_case": true
- },
- "kfr": {
- "type": "kuromoji_readingform",
- "use_romaji": true
- },
- "kpos": {
- "stoptags": [
- "# verb-main:",
- "動詞-自立"
- ],
- "type": "kuromoji_part_of_speech"
- },
- "ks": {
- "minimum_length": 4,
- "type": "kuromoji_stemmer"
- },
- "kstem": {
- "type": "kstem"
- },
- "length": {
- "type": "length",
- "min": 10,
- "max": 200
- },
- "limit": {
- "type": "limit",
- "max_token_count": 12,
- "consume_all_tokens": true
- },
- "lc": {
- "type": "lowercase"
- },
- "ngram": {
- "type": "ngram",
- "min_gram": 3,
- "max_gram": 4
- },
- "pc": {
- "type": "pattern_capture",
- "patterns": [
- "\\d",
- "\\w"
- ],
- "preserve_original": true
- },
- "pr": {
- "type": "pattern_replace",
- "pattern": "(\\d|\\w)",
- "replacement": "replacement"
- },
- "porter": {
- "type": "porter_stem"
- },
- "rev": {
- "type": "reverse"
- },
- "shing": {
- "type": "shingle",
- "min_shingle_size": 8,
- "max_shingle_size": 10,
- "output_unigrams": true,
- "output_unigrams_if_no_shingles": true,
- "token_separator": "|",
- "filler_token": "x"
- },
- "snow": {
- "type": "snowball",
- "language": "Dutch"
- },
- "standard": {
- "type": "standard"
- },
- "stem": {
- "type": "stemmer",
- "language": "arabic"
- },
- "stemo": {
- "type": "stemmer_override",
- "rules_path": "analysis/custom_stems.txt"
- },
- "stop": {
- "type": "stop",
- "stopwords": [
- "x",
- "y",
- "z"
- ],
- "ignore_case": true,
- "remove_trailing": true
- },
- "syn": {
- "type": "synonym",
- "synonyms_path": "analysis/stopwords.txt",
- "format": "wordnet",
- "synonyms": [
- "x=>y",
- "z=>s"
- ],
- "expand": true,
- "tokenizer": "whitespace"
- },
- "syn_graph": {
- "type": "synonym_graph",
- "synonyms_path": "analysis/stopwords.txt",
- "format": "wordnet",
- "synonyms": [
- "x=>y",
- "z=>s"
- ],
- "expand": true,
- "tokenizer": "whitespace"
- },
- "trimmer": {
- "type": "trim"
- },
- "truncer": {
- "type": "truncate",
- "length": 100
- },
- "uq": {
- "type": "unique",
- "only_on_same_position": true
- },
- "upper": {
- "type": "uppercase"
- },
- "wd": {
- "type": "word_delimiter",
- "generate_word_parts": true,
- "generate_number_parts": true,
- "catenate_words": true,
- "catenate_numbers": true,
- "catenate_all": true,
- "split_on_case_change": true,
- "preserve_original": true,
- "split_on_numerics": true,
- "stem_english_possessive": true,
- "protected_words": [
- "x",
- "y",
- "z"
- ]
- },
- "wdg": {
- "type": "word_delimiter_graph",
- "generate_word_parts": true,
- "generate_number_parts": true,
- "catenate_words": true,
- "catenate_numbers": true,
- "catenate_all": true,
- "split_on_case_change": true,
- "preserve_original": true,
- "split_on_numerics": true,
- "stem_english_possessive": true,
- "protected_words": [
- "x",
- "y",
- "z"
- ]
- },
- "phonetic": {
- "type": "phonetic",
- "encoder": "beider_morse",
- "rule_type": "exact",
- "name_type": "sephardic",
- "languageset": [
- "cyrillic",
- "english",
- "hebrew"
- ]
- }
- }
- }
-}
-----
-
diff --git a/docs/analysis/tokenizers/tokenizer-usage.asciidoc b/docs/analysis/tokenizers/tokenizer-usage.asciidoc
deleted file mode 100644
index e35e64c1841..00000000000
--- a/docs/analysis/tokenizers/tokenizer-usage.asciidoc
+++ /dev/null
@@ -1,95 +0,0 @@
-:ref_current: https://www.elastic.co/guide/en/elasticsearch/reference/6.3
-
-:github: https://github.com/elastic/elasticsearch-net
-
-:nuget: https://www.nuget.org/packages
-
-////
-IMPORTANT NOTE
-==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Analysis/Tokenizers/TokenizerUsageTests.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!
-////
-
-[[tokenizer-usage]]
-=== Tokenizer Usage
-
-==== Fluent DSL example
-
-[source,csharp]
-----
-FluentExample
-----
-
-==== Object Initializer syntax example
-
-[source,csharp]
-----
-InitializerExample
-----
-
-[source,javascript]
-.Example json output
-----
-{
- "analysis": {
- "tokenizer": {
- "endgen": {
- "min_gram": 1,
- "max_gram": 2,
- "token_chars": [
- "digit",
- "letter"
- ],
- "type": "edge_ngram"
- },
- "icu": {
- "rule_files": "Latn:icu-files/KeywordTokenizer.rbbi",
- "type": "icu_tokenizer"
- },
- "kuromoji": {
- "discard_punctuation": true,
- "mode": "extended",
- "nbest_cost": 1000,
- "nbest_examples": "/箱根山-箱根/成田空港-成田/",
- "type": "kuromoji_tokenizer"
- },
- "ng": {
- "min_gram": 1,
- "max_gram": 2,
- "token_chars": [
- "digit",
- "letter"
- ],
- "type": "ngram"
- },
- "path": {
- "delimiter": "|",
- "replacement": "-",
- "buffer_size": 2048,
- "reverse": true,
- "skip": 1,
- "type": "path_hierarchy"
- },
- "pattern": {
- "pattern": "\\W+",
- "flags": "CASE_INSENSITIVE",
- "group": 1,
- "type": "pattern"
- },
- "standard": {
- "type": "standard"
- },
- "uax": {
- "max_token_length": 12,
- "type": "uax_url_email"
- },
- "whitespace": {
- "type": "whitespace"
- }
- }
- }
-}
-----
-
diff --git a/docs/breaking-changes.asciidoc b/docs/breaking-changes.asciidoc
index 114f2d5c922..bce7d830328 100644
--- a/docs/breaking-changes.asciidoc
+++ b/docs/breaking-changes.asciidoc
@@ -3,7 +3,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/breaking-changes.asciidoc.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/master/src/Tests/Tests/breaking-changes.asciidoc.
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/client-concepts/certificates/working-with-certificates.asciidoc b/docs/client-concepts/certificates/working-with-certificates.asciidoc
index 75ae3dcee91..700eea73f48 100644
--- a/docs/client-concepts/certificates/working-with-certificates.asciidoc
+++ b/docs/client-concepts/certificates/working-with-certificates.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Certificates/WorkingWithCertificates.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Certificates/WorkingWithCertificates.doc.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/client-concepts/connection-pooling/building-blocks/connection-pooling.asciidoc b/docs/client-concepts/connection-pooling/building-blocks/connection-pooling.asciidoc
index 7fac54f1abe..37cf9e75aa2 100644
--- a/docs/client-concepts/connection-pooling/building-blocks/connection-pooling.asciidoc
+++ b/docs/client-concepts/connection-pooling/building-blocks/connection-pooling.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/ConnectionPooling.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/ConnectionPooling.doc.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/client-concepts/connection-pooling/building-blocks/date-time-providers.asciidoc b/docs/client-concepts/connection-pooling/building-blocks/date-time-providers.asciidoc
index 7150f41200e..70f04b35234 100644
--- a/docs/client-concepts/connection-pooling/building-blocks/date-time-providers.asciidoc
+++ b/docs/client-concepts/connection-pooling/building-blocks/date-time-providers.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/DateTimeProviders.Doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/DateTimeProviders.Doc.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/client-concepts/connection-pooling/building-blocks/keeping-track-of-nodes.asciidoc b/docs/client-concepts/connection-pooling/building-blocks/keeping-track-of-nodes.asciidoc
index 9cf24b3fda3..42998b4cea6 100644
--- a/docs/client-concepts/connection-pooling/building-blocks/keeping-track-of-nodes.asciidoc
+++ b/docs/client-concepts/connection-pooling/building-blocks/keeping-track-of-nodes.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/KeepingTrackOfNodes.Doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/KeepingTrackOfNodes.Doc.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/client-concepts/connection-pooling/building-blocks/request-pipelines.asciidoc b/docs/client-concepts/connection-pooling/building-blocks/request-pipelines.asciidoc
index 2fa88df969e..fa529cc04ae 100644
--- a/docs/client-concepts/connection-pooling/building-blocks/request-pipelines.asciidoc
+++ b/docs/client-concepts/connection-pooling/building-blocks/request-pipelines.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/RequestPipelines.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/RequestPipelines.doc.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/client-concepts/connection-pooling/building-blocks/transports.asciidoc b/docs/client-concepts/connection-pooling/building-blocks/transports.asciidoc
index 22c04d489c2..bec73b88b47 100644
--- a/docs/client-concepts/connection-pooling/building-blocks/transports.asciidoc
+++ b/docs/client-concepts/connection-pooling/building-blocks/transports.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/Transports.Doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/Transports.Doc.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/client-concepts/connection-pooling/exceptions/unexpected-exceptions.asciidoc b/docs/client-concepts/connection-pooling/exceptions/unexpected-exceptions.asciidoc
index cc089a59db9..b6b5f50fb5d 100644
--- a/docs/client-concepts/connection-pooling/exceptions/unexpected-exceptions.asciidoc
+++ b/docs/client-concepts/connection-pooling/exceptions/unexpected-exceptions.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Exceptions/UnexpectedExceptions.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Exceptions/UnexpectedExceptions.doc.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/client-concepts/connection-pooling/exceptions/unrecoverable-exceptions.asciidoc b/docs/client-concepts/connection-pooling/exceptions/unrecoverable-exceptions.asciidoc
index 365f03d0ce4..3d9e09b3fcc 100644
--- a/docs/client-concepts/connection-pooling/exceptions/unrecoverable-exceptions.asciidoc
+++ b/docs/client-concepts/connection-pooling/exceptions/unrecoverable-exceptions.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Exceptions/UnrecoverableExceptions.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Exceptions/UnrecoverableExceptions.doc.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/client-concepts/connection-pooling/failover/falling-over.asciidoc b/docs/client-concepts/connection-pooling/failover/falling-over.asciidoc
index c03fd68a30f..ad8a9c108cc 100644
--- a/docs/client-concepts/connection-pooling/failover/falling-over.asciidoc
+++ b/docs/client-concepts/connection-pooling/failover/falling-over.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Failover/FallingOver.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Failover/FallingOver.doc.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/client-concepts/connection-pooling/max-retries/respects-max-retry.asciidoc b/docs/client-concepts/connection-pooling/max-retries/respects-max-retry.asciidoc
index 74dbdb0432b..dcd4379d48e 100644
--- a/docs/client-concepts/connection-pooling/max-retries/respects-max-retry.asciidoc
+++ b/docs/client-concepts/connection-pooling/max-retries/respects-max-retry.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/MaxRetries/RespectsMaxRetry.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/MaxRetries/RespectsMaxRetry.doc.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!
////
@@ -158,7 +158,8 @@ audit = await audit.TraceCall(
new ClientCall {
{ BadResponse, 9200 },
{ BadResponse, 9201 },
- { MaxRetriesReached }
+ { MaxRetriesReached },
+ { FailedOverAllNodes }
}
);
----
diff --git a/docs/client-concepts/connection-pooling/pinging/first-usage.asciidoc b/docs/client-concepts/connection-pooling/pinging/first-usage.asciidoc
index c5c30015ff3..3dc4c9bcf8e 100644
--- a/docs/client-concepts/connection-pooling/pinging/first-usage.asciidoc
+++ b/docs/client-concepts/connection-pooling/pinging/first-usage.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Pinging/FirstUsage.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Pinging/FirstUsage.doc.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/client-concepts/connection-pooling/pinging/revival.asciidoc b/docs/client-concepts/connection-pooling/pinging/revival.asciidoc
index 1aa80ff0e18..569f0eb819d 100644
--- a/docs/client-concepts/connection-pooling/pinging/revival.asciidoc
+++ b/docs/client-concepts/connection-pooling/pinging/revival.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Pinging/Revival.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Pinging/Revival.doc.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/client-concepts/connection-pooling/request-overrides/disable-sniff-ping-per-request.asciidoc b/docs/client-concepts/connection-pooling/request-overrides/disable-sniff-ping-per-request.asciidoc
index 264949ae13c..e6a7a7af41c 100644
--- a/docs/client-concepts/connection-pooling/request-overrides/disable-sniff-ping-per-request.asciidoc
+++ b/docs/client-concepts/connection-pooling/request-overrides/disable-sniff-ping-per-request.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/DisableSniffPingPerRequest.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/DisableSniffPingPerRequest.doc.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/client-concepts/connection-pooling/request-overrides/request-timeouts-overrides.asciidoc b/docs/client-concepts/connection-pooling/request-overrides/request-timeouts-overrides.asciidoc
index 582f8866a2c..ddc3045f5d6 100644
--- a/docs/client-concepts/connection-pooling/request-overrides/request-timeouts-overrides.asciidoc
+++ b/docs/client-concepts/connection-pooling/request-overrides/request-timeouts-overrides.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RequestTimeoutsOverrides.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RequestTimeoutsOverrides.doc.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/client-concepts/connection-pooling/request-overrides/respects-allowed-status-code.asciidoc b/docs/client-concepts/connection-pooling/request-overrides/respects-allowed-status-code.asciidoc
index d02c3a2c09e..4c3b2d6be68 100644
--- a/docs/client-concepts/connection-pooling/request-overrides/respects-allowed-status-code.asciidoc
+++ b/docs/client-concepts/connection-pooling/request-overrides/respects-allowed-status-code.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RespectsAllowedStatusCode.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RespectsAllowedStatusCode.doc.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/client-concepts/connection-pooling/request-overrides/respects-force-node.asciidoc b/docs/client-concepts/connection-pooling/request-overrides/respects-force-node.asciidoc
index b7eaace9fd2..72e49d7c51d 100644
--- a/docs/client-concepts/connection-pooling/request-overrides/respects-force-node.asciidoc
+++ b/docs/client-concepts/connection-pooling/request-overrides/respects-force-node.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RespectsForceNode.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RespectsForceNode.doc.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/client-concepts/connection-pooling/request-overrides/respects-max-retry-overrides.asciidoc b/docs/client-concepts/connection-pooling/request-overrides/respects-max-retry-overrides.asciidoc
index 3e388e3b438..6fe5b93eee3 100644
--- a/docs/client-concepts/connection-pooling/request-overrides/respects-max-retry-overrides.asciidoc
+++ b/docs/client-concepts/connection-pooling/request-overrides/respects-max-retry-overrides.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RespectsMaxRetryOverrides.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/RequestOverrides/RespectsMaxRetryOverrides.doc.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/client-concepts/connection-pooling/round-robin/round-robin.asciidoc b/docs/client-concepts/connection-pooling/round-robin/round-robin.asciidoc
index 331fc02a976..ad29c7258f0 100644
--- a/docs/client-concepts/connection-pooling/round-robin/round-robin.asciidoc
+++ b/docs/client-concepts/connection-pooling/round-robin/round-robin.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/RoundRobin/RoundRobin.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/RoundRobin/RoundRobin.doc.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/client-concepts/connection-pooling/round-robin/skip-dead-nodes.asciidoc b/docs/client-concepts/connection-pooling/round-robin/skip-dead-nodes.asciidoc
index a0086e36e11..a127c431bd6 100644
--- a/docs/client-concepts/connection-pooling/round-robin/skip-dead-nodes.asciidoc
+++ b/docs/client-concepts/connection-pooling/round-robin/skip-dead-nodes.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/RoundRobin/SkipDeadNodes.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/RoundRobin/SkipDeadNodes.doc.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!
////
@@ -163,6 +163,7 @@ await audit.TraceCalls(
{ BadResponse, 9202},
{ BadResponse, 9203},
{ MaxRetriesReached },
+ { FailedOverAllNodes },
{ pool => pool.Nodes.Where(n=>!n.IsAlive).Should().HaveCount(4) }
},
new ClientCall {
diff --git a/docs/client-concepts/connection-pooling/sniffing/address-parsing.asciidoc b/docs/client-concepts/connection-pooling/sniffing/address-parsing.asciidoc
index d922f10e12c..b51cb5f5b2e 100644
--- a/docs/client-concepts/connection-pooling/sniffing/address-parsing.asciidoc
+++ b/docs/client-concepts/connection-pooling/sniffing/address-parsing.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sniffing/AddressParsing.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sniffing/AddressParsing.doc.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/client-concepts/connection-pooling/sniffing/on-connection-failure.asciidoc b/docs/client-concepts/connection-pooling/sniffing/on-connection-failure.asciidoc
index 4a47a58b394..ff22251b4fd 100644
--- a/docs/client-concepts/connection-pooling/sniffing/on-connection-failure.asciidoc
+++ b/docs/client-concepts/connection-pooling/sniffing/on-connection-failure.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sniffing/OnConnectionFailure.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sniffing/OnConnectionFailure.doc.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/client-concepts/connection-pooling/sniffing/on-stale-cluster-state.asciidoc b/docs/client-concepts/connection-pooling/sniffing/on-stale-cluster-state.asciidoc
index 3614305e9e3..d8f78ffa811 100644
--- a/docs/client-concepts/connection-pooling/sniffing/on-stale-cluster-state.asciidoc
+++ b/docs/client-concepts/connection-pooling/sniffing/on-stale-cluster-state.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sniffing/OnStaleClusterState.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sniffing/OnStaleClusterState.doc.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/client-concepts/connection-pooling/sniffing/on-startup.asciidoc b/docs/client-concepts/connection-pooling/sniffing/on-startup.asciidoc
index 9e8a38ed28a..cfc4945a80a 100644
--- a/docs/client-concepts/connection-pooling/sniffing/on-startup.asciidoc
+++ b/docs/client-concepts/connection-pooling/sniffing/on-startup.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sniffing/OnStartup.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sniffing/OnStartup.doc.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/client-concepts/connection-pooling/sniffing/role-detection.asciidoc b/docs/client-concepts/connection-pooling/sniffing/role-detection.asciidoc
index 990bcef6aca..36a1482213e 100644
--- a/docs/client-concepts/connection-pooling/sniffing/role-detection.asciidoc
+++ b/docs/client-concepts/connection-pooling/sniffing/role-detection.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sniffing/RoleDetection.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sniffing/RoleDetection.doc.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/client-concepts/connection-pooling/sticky/skip-dead-nodes.asciidoc b/docs/client-concepts/connection-pooling/sticky/skip-dead-nodes.asciidoc
index f52ba42678c..13601f09ea9 100644
--- a/docs/client-concepts/connection-pooling/sticky/skip-dead-nodes.asciidoc
+++ b/docs/client-concepts/connection-pooling/sticky/skip-dead-nodes.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sticky/SkipDeadNodes.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sticky/SkipDeadNodes.doc.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!
////
@@ -140,6 +140,7 @@ await audit.TraceCalls(
{ BadResponse, 9202},
{ BadResponse, 9203},
{ MaxRetriesReached },
+ { FailedOverAllNodes },
{ pool => pool.Nodes.Where(n=>!n.IsAlive).Should().HaveCount(4) }
},
/** After all our registered nodes are marked dead we want to sample a single dead node
diff --git a/docs/client-concepts/connection-pooling/sticky/sticky-sniffing-connection-pool.asciidoc b/docs/client-concepts/connection-pooling/sticky/sticky-sniffing-connection-pool.asciidoc
index 13b3d8bd020..2dcef573051 100644
--- a/docs/client-concepts/connection-pooling/sticky/sticky-sniffing-connection-pool.asciidoc
+++ b/docs/client-concepts/connection-pooling/sticky/sticky-sniffing-connection-pool.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sticky/StickySniffingConnectionPool.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sticky/StickySniffingConnectionPool.doc.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/client-concepts/connection-pooling/sticky/sticky.asciidoc b/docs/client-concepts/connection-pooling/sticky/sticky.asciidoc
index b00c1ab687d..5e69dcb5c7f 100644
--- a/docs/client-concepts/connection-pooling/sticky/sticky.asciidoc
+++ b/docs/client-concepts/connection-pooling/sticky/sticky.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/ConnectionPooling/Sticky/Sticky.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/ConnectionPooling/Sticky/Sticky.doc.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/client-concepts/connection/configuration-options.asciidoc b/docs/client-concepts/connection/configuration-options.asciidoc
index cab0d8a3b87..38450d9e66d 100644
--- a/docs/client-concepts/connection/configuration-options.asciidoc
+++ b/docs/client-concepts/connection/configuration-options.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Connection/ConfigurationOptions.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Connection/ConfigurationOptions.doc.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/client-concepts/connection/modifying-default-connection.asciidoc b/docs/client-concepts/connection/modifying-default-connection.asciidoc
index 272475c8494..d376282f094 100644
--- a/docs/client-concepts/connection/modifying-default-connection.asciidoc
+++ b/docs/client-concepts/connection/modifying-default-connection.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Connection/ModifyingDefaultConnection.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Connection/ModifyingDefaultConnection.doc.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/client-concepts/high-level/analysis/testing-analyzers.asciidoc b/docs/client-concepts/high-level/analysis/testing-analyzers.asciidoc
index 857d54d9235..ff1f108fd6f 100644
--- a/docs/client-concepts/high-level/analysis/testing-analyzers.asciidoc
+++ b/docs/client-concepts/high-level/analysis/testing-analyzers.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Analysis/TestingAnalyzers.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Analysis/TestingAnalyzers.doc.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/client-concepts/high-level/analysis/writing-analyzers.asciidoc b/docs/client-concepts/high-level/analysis/writing-analyzers.asciidoc
index f6e077eda0f..88096c856fd 100644
--- a/docs/client-concepts/high-level/analysis/writing-analyzers.asciidoc
+++ b/docs/client-concepts/high-level/analysis/writing-analyzers.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Analysis/WritingAnalyzers.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Analysis/WritingAnalyzers.doc.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/client-concepts/high-level/covariant-hits/covariant-search-results.asciidoc b/docs/client-concepts/high-level/covariant-hits/covariant-search-results.asciidoc
index f8302e41f93..ce282fd810a 100644
--- a/docs/client-concepts/high-level/covariant-hits/covariant-search-results.asciidoc
+++ b/docs/client-concepts/high-level/covariant-hits/covariant-search-results.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/CovariantHits/CovariantSearchResults.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/CovariantHits/CovariantSearchResults.doc.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/client-concepts/high-level/getting-started.asciidoc b/docs/client-concepts/high-level/getting-started.asciidoc
index 7444d02e1e2..f6e28773c7f 100644
--- a/docs/client-concepts/high-level/getting-started.asciidoc
+++ b/docs/client-concepts/high-level/getting-started.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/GettingStarted.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/GettingStarted.doc.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/client-concepts/high-level/inference/document-paths.asciidoc b/docs/client-concepts/high-level/inference/document-paths.asciidoc
index 8c0f82cd9d0..17a38f02221 100644
--- a/docs/client-concepts/high-level/inference/document-paths.asciidoc
+++ b/docs/client-concepts/high-level/inference/document-paths.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/DocumentPaths.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/DocumentPaths.doc.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/client-concepts/high-level/inference/field-inference.asciidoc b/docs/client-concepts/high-level/inference/field-inference.asciidoc
index 45113f8ba13..65945b9a541 100644
--- a/docs/client-concepts/high-level/inference/field-inference.asciidoc
+++ b/docs/client-concepts/high-level/inference/field-inference.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/FieldInference.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/FieldInference.doc.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/client-concepts/high-level/inference/ids-inference.asciidoc b/docs/client-concepts/high-level/inference/ids-inference.asciidoc
index 0d9a7d6d94d..72a1c8486ab 100644
--- a/docs/client-concepts/high-level/inference/ids-inference.asciidoc
+++ b/docs/client-concepts/high-level/inference/ids-inference.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/IdsInference.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/IdsInference.doc.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/client-concepts/high-level/inference/index-name-inference.asciidoc b/docs/client-concepts/high-level/inference/index-name-inference.asciidoc
index bacaec7a93c..f3dde6877cd 100644
--- a/docs/client-concepts/high-level/inference/index-name-inference.asciidoc
+++ b/docs/client-concepts/high-level/inference/index-name-inference.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/IndexNameInference.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/IndexNameInference.doc.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/client-concepts/high-level/inference/indices-paths.asciidoc b/docs/client-concepts/high-level/inference/indices-paths.asciidoc
index 970f5c21a94..76d63538cb0 100644
--- a/docs/client-concepts/high-level/inference/indices-paths.asciidoc
+++ b/docs/client-concepts/high-level/inference/indices-paths.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/IndicesPaths.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/IndicesPaths.doc.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/client-concepts/high-level/inference/property-inference.asciidoc b/docs/client-concepts/high-level/inference/property-inference.asciidoc
index a14eda927f8..5858cdad48f 100644
--- a/docs/client-concepts/high-level/inference/property-inference.asciidoc
+++ b/docs/client-concepts/high-level/inference/property-inference.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/PropertyInference.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/PropertyInference.doc.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/client-concepts/high-level/inference/routing-inference.asciidoc b/docs/client-concepts/high-level/inference/routing-inference.asciidoc
index 1bc9b7907ff..c1a81f60f3f 100644
--- a/docs/client-concepts/high-level/inference/routing-inference.asciidoc
+++ b/docs/client-concepts/high-level/inference/routing-inference.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/RoutingInference.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/RoutingInference.doc.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/client-concepts/high-level/inference/types-and-relations-inference.asciidoc b/docs/client-concepts/high-level/inference/types-and-relations-inference.asciidoc
index 3fb7a99695b..a952618d299 100644
--- a/docs/client-concepts/high-level/inference/types-and-relations-inference.asciidoc
+++ b/docs/client-concepts/high-level/inference/types-and-relations-inference.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Inference/TypesAndRelationsInference.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Inference/TypesAndRelationsInference.doc.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/client-concepts/high-level/mapping/attribute-mapping.asciidoc b/docs/client-concepts/high-level/mapping/attribute-mapping.asciidoc
index 68efce1919f..7aae4e0f645 100644
--- a/docs/client-concepts/high-level/mapping/attribute-mapping.asciidoc
+++ b/docs/client-concepts/high-level/mapping/attribute-mapping.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Mapping/AttributeMapping.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Mapping/AttributeMapping.doc.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/client-concepts/high-level/mapping/auto-map.asciidoc b/docs/client-concepts/high-level/mapping/auto-map.asciidoc
index ef9b5f5753f..b0ac3faf47b 100644
--- a/docs/client-concepts/high-level/mapping/auto-map.asciidoc
+++ b/docs/client-concepts/high-level/mapping/auto-map.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Mapping/AutoMap.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Mapping/AutoMap.doc.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/client-concepts/high-level/mapping/fluent-mapping.asciidoc b/docs/client-concepts/high-level/mapping/fluent-mapping.asciidoc
index a40fcc2513c..68cbf87730d 100644
--- a/docs/client-concepts/high-level/mapping/fluent-mapping.asciidoc
+++ b/docs/client-concepts/high-level/mapping/fluent-mapping.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Mapping/FluentMapping.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Mapping/FluentMapping.doc.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/client-concepts/high-level/mapping/ignoring-properties.asciidoc b/docs/client-concepts/high-level/mapping/ignoring-properties.asciidoc
index 82788a8db3d..1c922055eb2 100644
--- a/docs/client-concepts/high-level/mapping/ignoring-properties.asciidoc
+++ b/docs/client-concepts/high-level/mapping/ignoring-properties.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Mapping/IgnoringProperties.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Mapping/IgnoringProperties.doc.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/client-concepts/high-level/mapping/multi-fields.asciidoc b/docs/client-concepts/high-level/mapping/multi-fields.asciidoc
index a3009ed0346..7c703f2eede 100644
--- a/docs/client-concepts/high-level/mapping/multi-fields.asciidoc
+++ b/docs/client-concepts/high-level/mapping/multi-fields.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Mapping/MultiFields.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Mapping/MultiFields.doc.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/client-concepts/high-level/mapping/parent-child-relationships.asciidoc b/docs/client-concepts/high-level/mapping/parent-child-relationships.asciidoc
index 368a1d7234e..f8288ecc912 100644
--- a/docs/client-concepts/high-level/mapping/parent-child-relationships.asciidoc
+++ b/docs/client-concepts/high-level/mapping/parent-child-relationships.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Mapping/ParentChildRelationships.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Mapping/ParentChildRelationships.doc.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/client-concepts/high-level/mapping/visitor-pattern-mapping.asciidoc b/docs/client-concepts/high-level/mapping/visitor-pattern-mapping.asciidoc
index 9ac5b500dc3..278e1675846 100644
--- a/docs/client-concepts/high-level/mapping/visitor-pattern-mapping.asciidoc
+++ b/docs/client-concepts/high-level/mapping/visitor-pattern-mapping.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Mapping/VisitorPatternMapping.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Mapping/VisitorPatternMapping.doc.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/client-concepts/high-level/serialization/custom-serialization.asciidoc b/docs/client-concepts/high-level/serialization/custom-serialization.asciidoc
index c1ded24dfed..bd53b0ee0ed 100644
--- a/docs/client-concepts/high-level/serialization/custom-serialization.asciidoc
+++ b/docs/client-concepts/high-level/serialization/custom-serialization.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Serialization/CustomSerialization.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Serialization/CustomSerialization.doc.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/client-concepts/high-level/serialization/extending-nest-types.asciidoc b/docs/client-concepts/high-level/serialization/extending-nest-types.asciidoc
index 88621b1fb73..115a3e94e68 100644
--- a/docs/client-concepts/high-level/serialization/extending-nest-types.asciidoc
+++ b/docs/client-concepts/high-level/serialization/extending-nest-types.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/HighLevel/Serialization/ExtendingNestTypes.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/HighLevel/Serialization/ExtendingNestTypes.doc.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/client-concepts/low-level/getting-started.asciidoc b/docs/client-concepts/low-level/getting-started.asciidoc
index 35a7e362c03..6d161ef07f6 100644
--- a/docs/client-concepts/low-level/getting-started.asciidoc
+++ b/docs/client-concepts/low-level/getting-started.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/LowLevel/GettingStarted.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/LowLevel/GettingStarted.doc.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!
////
@@ -99,10 +99,10 @@ var person = new Person
LastName = "Laarman"
};
-var indexResponse = lowlevelClient.Index("people", "person", "1", PostData.Serializable(person)); <1>
+var indexResponse = lowlevelClient.Index("people", "person", "1", PostData.Serializable(person)); <1>
byte[] responseBytes = indexResponse.Body;
-var asyncIndexResponse = await lowlevelClient.IndexAsync("people", "person", "1", PostData.Serializable(person)); <2>
+var asyncIndexResponse = await lowlevelClient.IndexAsync("people", "person", "1", PostData.Serializable(person)); <2>
string responseString = asyncIndexResponse.Body;
----
<1> synchronous method that returns an `IIndexResponse`
@@ -238,8 +238,8 @@ is successful
----
var searchResponse = lowlevelClient.Search("people", "person", PostData.Serializable(new { match_all = new {} }));
-var success = searchResponse.Success; <1>
-var successOrKnownError = searchResponse.SuccessOrKnownError; <2>
+var success = searchResponse.Success; <1>
+var successOrKnownError = searchResponse.SuccessOrKnownError; <2>
var exception = searchResponse.OriginalException; <3>
----
<1> Response is in the 200 range, or an expected response for the given request
diff --git a/docs/client-concepts/low-level/lifetimes.asciidoc b/docs/client-concepts/low-level/lifetimes.asciidoc
index 8a3db8e190c..b8160403b81 100644
--- a/docs/client-concepts/low-level/lifetimes.asciidoc
+++ b/docs/client-concepts/low-level/lifetimes.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/LowLevel/Lifetimes.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/LowLevel/Lifetimes.doc.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/client-concepts/low-level/post-data.asciidoc b/docs/client-concepts/low-level/post-data.asciidoc
index 25bf6ca19c1..72f9a1bd1e2 100644
--- a/docs/client-concepts/low-level/post-data.asciidoc
+++ b/docs/client-concepts/low-level/post-data.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/LowLevel/PostData.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/LowLevel/PostData.doc.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/client-concepts/troubleshooting/audit-trail.asciidoc b/docs/client-concepts/troubleshooting/audit-trail.asciidoc
index ce853033466..44d2b2ab1fb 100644
--- a/docs/client-concepts/troubleshooting/audit-trail.asciidoc
+++ b/docs/client-concepts/troubleshooting/audit-trail.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Troubleshooting/AuditTrail.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Troubleshooting/AuditTrail.doc.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/client-concepts/troubleshooting/debug-information.asciidoc b/docs/client-concepts/troubleshooting/debug-information.asciidoc
index c0d1a97e94a..deed0c5a42d 100644
--- a/docs/client-concepts/troubleshooting/debug-information.asciidoc
+++ b/docs/client-concepts/troubleshooting/debug-information.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Troubleshooting/DebugInformation.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Troubleshooting/DebugInformation.doc.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/client-concepts/troubleshooting/deprecation-logging.asciidoc b/docs/client-concepts/troubleshooting/deprecation-logging.asciidoc
index d528f28ad46..0094b0fa121 100644
--- a/docs/client-concepts/troubleshooting/deprecation-logging.asciidoc
+++ b/docs/client-concepts/troubleshooting/deprecation-logging.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Troubleshooting/DeprecationLogging.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Troubleshooting/DeprecationLogging.doc.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/client-concepts/troubleshooting/logging-with-fiddler.asciidoc b/docs/client-concepts/troubleshooting/logging-with-fiddler.asciidoc
index 82061f78ec5..f270287cbae 100644
--- a/docs/client-concepts/troubleshooting/logging-with-fiddler.asciidoc
+++ b/docs/client-concepts/troubleshooting/logging-with-fiddler.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Troubleshooting/LoggingWithFiddler.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Troubleshooting/LoggingWithFiddler.doc.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/client-concepts/troubleshooting/logging-with-on-request-completed.asciidoc b/docs/client-concepts/troubleshooting/logging-with-on-request-completed.asciidoc
index 82b52350735..f02f094b9bb 100644
--- a/docs/client-concepts/troubleshooting/logging-with-on-request-completed.asciidoc
+++ b/docs/client-concepts/troubleshooting/logging-with-on-request-completed.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/ClientConcepts/Troubleshooting/LoggingWithOnRequestCompleted.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/ClientConcepts/Troubleshooting/LoggingWithOnRequestCompleted.doc.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/code-standards/descriptors.asciidoc b/docs/code-standards/descriptors.asciidoc
index 9e955885e0e..62c93e290b9 100644
--- a/docs/code-standards/descriptors.asciidoc
+++ b/docs/code-standards/descriptors.asciidoc
@@ -7,7 +7,7 @@
////
IMPORTANT NOTE
==============
-This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/CodeStandards/Descriptors.doc.cs.
+This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/Tests/CodeStandards/Descriptors.doc.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!
////
@@ -182,7 +182,8 @@ var methods = from d in YieldAllDescriptors()
where !(m.Name == "Lang" && dt == typeof(ScriptDescriptorBase<,>))
where !(m.Name == "Lang" && dt == typeof(StoredScriptDescriptor))
where !(m.Name == "Lang" && dt == typeof(ScriptQueryDescriptor<>))
- where !(m.Name == "RefreshOnCompleted" && dt == typeof(BulkAllDescriptor<>))
+ where !(m.Name == nameof(BulkAllDescriptor