Skip to content

Commit ce8603c

Browse files
committed
Add to indexation
1 parent 1137714 commit ce8603c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/Indexes.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ public function buildMapping(): array
478478
$mapping[$fieldPrefix . 'attribute_' . $attribute] = $config;
479479
}
480480

481+
if(isset($element->postDate) && $element->postDate instanceof \DateTime) {
482+
$keywords['attribute_postDate'] = $element->postDate->format(\DateTime::ATOM);
483+
}
484+
481485
/**
482486
* @var ElementInterface $elementType
483487
*/

0 commit comments

Comments
 (0)