Skip to content

Commit

Permalink
IBX-8378: Fieldtype must implement Indexable if using Solr
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarl committed Jun 10, 2024
1 parent 2fb300d commit 2b9bceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function mapFields(Content $content, $languageCode)
}

foreach ($contentType->fieldDefinitions as $fieldDefinition) {
if ($fieldDefinition->id !== $field->fieldDefinitionId) {
if ($fieldDefinition->id !== $field->fieldDefinitionId || !$fieldDefinition->isSearchable) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private function doMapFields(Content $content, ContentType $contentType, $langua
}

foreach ($contentType->fieldDefinitions as $fieldDefinition) {
if ($fieldDefinition->id !== $field->fieldDefinitionId) {
if ($fieldDefinition->id !== $field->fieldDefinitionId || !$fieldDefinition->isSearchable) {
continue;
}

Expand All @@ -140,7 +140,7 @@ private function doMapFields(Content $content, ContentType $contentType, $langua
continue;
}

if (!$indexField->type instanceof FieldType\FullTextField || !$fieldDefinition->isSearchable) {
if (!$indexField->type instanceof FieldType\FullTextField) {
continue;
}

Expand Down

0 comments on commit 2b9bceb

Please sign in to comment.