Skip to content

Commit 4983703

Browse files
committed
Update docs
1 parent 3a98c49 commit 4983703

File tree

54 files changed

+418
-369
lines changed

Some content is hidden

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

54 files changed

+418
-369
lines changed

docs/aggregations/bucket/date-histogram/date-histogram-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ in the correct type. <<aggs-vs-aggregations, Be sure to read more about .Aggs vs
131131

132132
[source,csharp]
133133
----
134-
response.IsValid.Should().BeTrue();
134+
response.ShouldBeValid();
135135
136136
var dateHistogram = response.Aggs.DateHistogram("projects_started_per_month");
137137
dateHistogram.Should().NotBeNull();

docs/aggregations/bucket/date-range/date-range-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ in the correct type. <<aggs-vs-aggregations, Be sure to read more about .Aggs vs
104104

105105
[source,csharp]
106106
----
107-
response.IsValid.Should().BeTrue();
107+
response.ShouldBeValid();
108108
109109
var dateHistogram = response.Aggs.DateRange("projects_date_ranges");
110110
dateHistogram.Should().NotBeNull();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ in the correct type. <<aggs-vs-aggregations, Be sure to read more about .Aggs vs
8282

8383
[source,csharp]
8484
----
85-
response.IsValid.Should().BeTrue();
85+
response.ShouldBeValid();
8686
8787
var filterAgg = response.Aggs.Filter("bethels_projects");
8888
filterAgg.Should().NotBeNull();
@@ -147,7 +147,7 @@ new SearchRequest<Project>
147147

148148
[source,csharp]
149149
----
150-
response.IsValid.Should().BeTrue();
150+
response.ShouldBeValid();
151151
response.Aggs.Filter("empty_filter").DocCount.Should().BeGreaterThan(0);
152152
----
153153

@@ -209,7 +209,7 @@ new SearchRequest<Project>
209209

210210
[source,csharp]
211211
----
212-
response.IsValid.Should().BeTrue();
212+
response.ShouldBeValid();
213213
response.Aggs.Filter(_aggName).DocCount.Should().BeGreaterThan(0);
214214
----
215215

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ please modify the original csharp file found at the link and submit the PR with
1515
[[filters-aggregation-usage]]
1616
== Filters Aggregation Usage
1717

18-
Defines a multi bucket aggregations where each bucket is associated with a filter.
18+
Defines a multi bucket aggregations where each bucket is associated with a filter.
1919
Each bucket will collect all documents that match its associated filter. For documents
2020
that do not match any filter, these will be collected in the _other bucket_.
2121

2222
Be sure to read the Elasticsearch documentation {ref_current}/search-aggregations-bucket-filters-aggregation.html[Filters Aggregation]
2323

2424
[[named-filters]]
2525
[float]
26-
== Named filters
26+
== Named filters
2727

2828
=== Fluent DSL Example
2929

@@ -115,12 +115,12 @@ new SearchRequest<Project>
115115

116116
=== Handling Responses
117117

118-
Using the `.Agg` aggregation helper we can fetch our aggregation results easily
118+
Using the `.Agg` aggregation helper we can fetch our aggregation results easily
119119
in the correct type. <<aggs-vs-aggregations, Be sure to read more about .Aggs vs .Aggregations>>
120120

121121
[source,csharp]
122122
----
123-
response.IsValid.Should().BeTrue();
123+
response.ShouldBeValid();
124124
125125
var filterAgg = response.Aggs.Filters("projects_by_state");
126126
filterAgg.Should().NotBeNull();
@@ -140,7 +140,7 @@ namedResult.DocCount.Should().Be(0);
140140

141141
[[anonymous-filters]]
142142
[float]
143-
== Anonymous filters
143+
== Anonymous filters
144144

145145
=== Fluent DSL Example
146146

@@ -232,12 +232,12 @@ new SearchRequest<Project>
232232

233233
=== Handling Responses
234234

235-
Using the `.Agg` aggregation helper we can fetch our aggregation results easily
235+
Using the `.Agg` aggregation helper we can fetch our aggregation results easily
236236
in the correct type. <<aggs-vs-aggregations, Be sure to read more about .Aggs vs .Aggregations>>
237237

238238
[source,csharp]
239239
----
240-
response.IsValid.Should().BeTrue();
240+
response.ShouldBeValid();
241241
242242
var filterAgg = response.Aggs.Filters("projects_by_state");
243243
filterAgg.Should().NotBeNull();
@@ -255,7 +255,7 @@ results.Last().DocCount.Should().Be(0); <1>
255255

256256
[[empty-filters]]
257257
[float]
258-
== Empty Filters
258+
== Empty Filters
259259

260260
=== Fluent DSL Example
261261

@@ -300,7 +300,7 @@ new SearchRequest<Project>
300300

301301
[source,csharp]
302302
----
303-
response.IsValid.Should().BeTrue();
303+
response.ShouldBeValid();
304304
response.Aggs.Filters("empty_filters").Buckets.Should().BeEmpty();
305305
----
306306

@@ -356,7 +356,7 @@ new SearchRequest<Project>
356356

357357
[source,csharp]
358358
----
359-
response.IsValid.Should().BeTrue();
359+
response.ShouldBeValid();
360360
response.Aggs.Filters("conditionless_filters").Buckets.Should().BeEmpty();
361361
----
362362

docs/aggregations/bucket/geo-hash-grid/geo-hash-grid-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ new SearchRequest<Project>
6767

6868
[source,csharp]
6969
----
70-
response.IsValid.Should().BeTrue();
70+
response.ShouldBeValid();
7171
var myGeoHashGrid = response.Aggs.GeoHash("my_geohash_grid");
7272
myGeoHashGrid.Should().NotBeNull();
7373
----

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ new SearchRequest<Project>
7070

7171
[source,csharp]
7272
----
73-
response.IsValid.Should().BeTrue();
73+
response.ShouldBeValid();
7474
var allProjects = response.Aggs.Global("all_projects");
7575
allProjects.Should().NotBeNull();
7676
var names = allProjects.Terms("names");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ new SearchRequest<Project>
6969

7070
[source,csharp]
7171
----
72-
response.IsValid.Should().BeTrue();
72+
response.ShouldBeValid();
7373
var commits = response.Aggs.Histogram("commits");
7474
commits.Should().NotBeNull();
7575

docs/aggregations/bucket/ip-range/ip-range-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ new SearchRequest<Project>
7575

7676
[source,csharp]
7777
----
78-
response.IsValid.Should().BeTrue();
78+
response.ShouldBeValid();
7979
var ipRanges = response.Aggs.IpRange("ip_ranges");
8080
ipRanges.Should().NotBeNull();
8181
ipRanges.Buckets.Should().NotBeNull();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ new SearchRequest<Project>
5858

5959
[source,csharp]
6060
----
61-
response.IsValid.Should().BeTrue();
61+
response.ShouldBeValid();
6262
var projectsWithoutDesc = response.Aggs.Missing("projects_without_a_description");
6363
projectsWithoutDesc.Should().NotBeNull();
6464
----

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ new SearchRequest<Project>
7474

7575
[source,csharp]
7676
----
77-
response.IsValid.Should().BeTrue();
77+
response.ShouldBeValid();
7878
var tags = response.Aggs.Nested("tags");
7979
tags.Should().NotBeNull();
8080
var tagNames = tags.Terms("tag_names");

0 commit comments

Comments
 (0)