Skip to content

Commit 99137a4

Browse files
authored
Merge pull request #9 from ensi-platform/fix-terms-facet
Количество результатов в фасете
2 parents 6135dcd + 8f25e89 commit 99137a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Faceting/AllowedFacet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public static function fromAggregate(string $aggregateName, string|array|null $f
100100
return self::new($aggregateName, $filterNames);
101101
}
102102

103-
public static function terms(string $name, string|array|null $filterNames = null, ?string $field = null): self
103+
public static function terms(string $name, string|array|null $filterNames = null, ?string $field = null, ?int $size = null): self
104104
{
105105
return self::new($name, $filterNames)
106-
->attachAggregate(AllowedAggregate::terms($name, $field));
106+
->attachAggregate(AllowedAggregate::terms($name, $field, $size));
107107
}
108108

109109
public static function minmax(string $name, string|array|null $filterNames = null, ?string $field = null): self

0 commit comments

Comments
 (0)