"src/ElasticSearch/Search/Aggs/AggsFacetTerms.php" did not exist on "512cbe712c16d92e4bafad2f42c5d5c8c5b9ea38"
Newer
Older
<?php
declare(strict_types=1);
use IQDEV\ElasticSearch\Esable;
class QueryMatch implements Esable
{
public function __construct(
private readonly string $key,
private readonly string $value,
) {
}
public function es(): array
{
return [
$this->key => [
'query' => $this->value
]
];
}
}