Loading src/ElasticSearch/Facet/Type/KeywordFacet.php +5 −1 Original line number Diff line number Diff line Loading @@ -11,9 +11,13 @@ final class KeywordFacet extends Facet */ public function es(): array { $value = is_array($this->value) ? array_map(static fn($value) => (string) $value, $this->value) : (string) $this->value; return [ 'facet_code' => $this->property->getKey(), 'facet_value' => (string) $this->value, 'facet_value' => $value ]; } } Loading
src/ElasticSearch/Facet/Type/KeywordFacet.php +5 −1 Original line number Diff line number Diff line Loading @@ -11,9 +11,13 @@ final class KeywordFacet extends Facet */ public function es(): array { $value = is_array($this->value) ? array_map(static fn($value) => (string) $value, $this->value) : (string) $this->value; return [ 'facet_code' => $this->property->getKey(), 'facet_value' => (string) $this->value, 'facet_value' => $value ]; } }