diff --git a/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php b/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php index a904abb2..39e1e1af 100644 --- a/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php +++ b/lib/Core/Search/Solr/FieldMapper/FullTextFieldResolver/NativeFulltextFieldResolver.php @@ -52,7 +52,7 @@ public function resolveFields(SPIContent $content, string $languageCode): array $indexFields = $fieldType->getIndexData($field, $fieldDefinition); foreach ($indexFields as $indexField) { - if ($indexField->value === null) { + if ($indexField->getValue() === null) { continue; } @@ -62,12 +62,13 @@ public function resolveFields(SPIContent $content, string $languageCode): array $fields[] = new Field( 'meta_content__text', - (string) $indexField->value, + (string) $indexField->getValue(), new TextField(), ); } } } + return $fields; } }