Skip to content

Commit a1e18ff

Browse files
committed
Fix some lines.
1 parent ed07116 commit a1e18ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/overview/aggregations/elastic_aggregation_ip_range.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ val aggregation: IpRangeAggregation =
1717
ipRangeAggregation(
1818
name = "ip_range_agg",
1919
field = Document.stringField,
20-
ranges = Chunk(
20+
ranges = NonEmptyChunk(
2121
IpRange.IpRangeBound(to = Some("10.0.0.5")),
2222
IpRange.IpRangeBound(from = Some("10.0.0.5"))
2323
)
@@ -30,7 +30,7 @@ val aggregation: IpRangeAggregation =
3030
ipRangeAggregation(
3131
name = "ip_range_agg",
3232
field = "ipField",
33-
ranges = Chunk(
33+
ranges = NonEmptyChunk(
3434
IpRange.IpRangeBound(to = Some("10.0.0.5")),
3535
IpRange.IpRangeBound(from = Some("10.0.0.5"))
3636
)
@@ -43,7 +43,7 @@ val cidrAggregation: IpRangeAggregation =
4343
ipRangeAggregation(
4444
name = "cidr_agg",
4545
field = "ipField",
46-
ranges = Chunk(
46+
ranges = NonEmptyChunk(
4747
IpRange.IpRangeBound(mask = Some("10.0.0.0/25")),
4848
IpRange.IpRangeBound(mask = Some("10.0.0.128/25"))
4949
)
@@ -53,7 +53,7 @@ val cidrAggregation: IpRangeAggregation =
5353
If you want to explicitly set the keyed property:
5454
```scala
5555
val multipleAggregations =
56-
ipRangeAggregation("ip_range_agg", "ipField", Chunk(IpRange.IpRangeBound(to = Some("10.0.0.5"))))
56+
ipRangeAggregation("ip_range_agg", "ipField", NonEmptyChunk(IpRange.IpRangeBound(to = Some("10.0.0.5"))))
5757
.keyedOn
5858
.withAgg(maxAggregation("maxAgg", "someField"))
5959
```

0 commit comments

Comments
 (0)