Skip to content

Commit

Permalink
Merge pull request #79 from fedorf4/v7-collapse-with-array-sort
Browse files Browse the repository at this point in the history
Update InnerHits - add sort array
  • Loading branch information
MsNatali authored Jan 13, 2025
2 parents 9aa57ee + 469a56d commit 6470ae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Search/Collapsing/InnerHits.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

use Ensi\LaravelElasticQuery\Contracts\DSLAware;
use Ensi\LaravelElasticQuery\Search\Sorting\Sort;
use Ensi\LaravelElasticQuery\Search\Sorting\SortCollection;
use Webmozart\Assert\Assert;

class InnerHits implements DSLAware
{
public function __construct(
protected string $name,
protected int $size,
protected ?Sort $sort,
protected Sort|SortCollection|null $sort,
) {
Assert::stringNotEmpty(trim($name));
}
Expand Down

0 comments on commit 6470ae3

Please sign in to comment.