From ec434c0c75d787d6ce7f8c522f88163c3590196a Mon Sep 17 00:00:00 2001 From: hying Date: Fri, 13 Sep 2024 16:26:02 +0200 Subject: [PATCH] feat: add new index-field 'startletter' --- .../Indexer/SiteKit/DefaultSchema2xDocumentEnricher.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Service/Indexer/SiteKit/DefaultSchema2xDocumentEnricher.php b/src/Service/Indexer/SiteKit/DefaultSchema2xDocumentEnricher.php index 5e51e1c..a4a0cdf 100644 --- a/src/Service/Indexer/SiteKit/DefaultSchema2xDocumentEnricher.php +++ b/src/Service/Indexer/SiteKit/DefaultSchema2xDocumentEnricher.php @@ -133,9 +133,7 @@ public function enrichDocument( ?: $base->getString('title'); $doc->sp_sortvalue = $sortHeadline; - if ($base->has('startletter')) { - $doc->sp_startletter = $base->getString('startletter'); - } + $doc->sp_startletter = $base->getString('startletter'); /** @var string[] $keyword */ $keyword = $metadata->getArray('keywords');