Skip to content

Commit

Permalink
Merged branch '3.3' of ezsystems/ezplatform-solr-search-engine into 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jul 9, 2024
2 parents 4585e3a + 19ff229 commit 73dca96
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 @@ -72,7 +72,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 @@ -126,7 +126,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 @@ -138,7 +138,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 73dca96

Please sign in to comment.