@@ 355-366 (lines=12) @@ | ||
352 | ||
353 | if ($metadata instanceof IndexMetadata && isset($tagAttributes['role'])) { |
|
354 | switch ($tagAttributes['role']) { |
|
355 | case 'title': |
|
356 | $metadata->setTitleField($this->getContentField($property)); |
|
357 | $metadata->addFieldMapping( |
|
358 | $property->getName(), |
|
359 | [ |
|
360 | 'field' => $this->getContentField($property), |
|
361 | 'type' => 'string', |
|
362 | 'aggregate' => true, |
|
363 | 'indexed' => false, |
|
364 | ] |
|
365 | ); |
|
366 | break; |
|
367 | case 'description': |
|
368 | $metadata->setDescriptionField($this->getContentField($property)); |
|
369 | $metadata->addFieldMapping( |
|
@@ 367-378 (lines=12) @@ | ||
364 | ] |
|
365 | ); |
|
366 | break; |
|
367 | case 'description': |
|
368 | $metadata->setDescriptionField($this->getContentField($property)); |
|
369 | $metadata->addFieldMapping( |
|
370 | $property->getName(), |
|
371 | [ |
|
372 | 'field' => $this->getContentField($property), |
|
373 | 'type' => 'string', |
|
374 | 'aggregate' => true, |
|
375 | 'indexed' => false, |
|
376 | ] |
|
377 | ); |
|
378 | break; |
|
379 | case 'image': |
|
380 | $metadata->setImageUrlField($this->getContentField($property)); |
|
381 | break; |