Skip to content

Commit 688f6d0

Browse files
committed
#96329 Count aggregation and sort missing values
1 parent 90f0320 commit 688f6d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Contracts/AggregationsBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
interface AggregationsBuilder extends BoolQuery
88
{
9-
public function terms(string $name, string $field): static;
9+
public function terms(string $name, string $field, ?int $size = null): static;
1010

1111
public function minmax(string $name, string $field): static;
1212

13+
public function count(string $path, string $field): static;
14+
1315
public function nested(string $path, Closure $callback): static;
1416
}

src/Contracts/SortableQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
interface SortableQuery extends BoolQuery
88
{
9-
public function sortBy(string $field, string $order = SortOrder::ASC, ?string $mode = null): static;
9+
public function sortBy(string $field, string $order = SortOrder::ASC, ?string $mode = null, ?string $missingValues = null): static;
1010

1111
public function minSortBy(string $field, string $order = SortOrder::ASC): static;
1212

0 commit comments

Comments
 (0)