Skip to content

Commit

Permalink
Add multivalue fields to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung committed Aug 20, 2024
1 parent bdd1638 commit c91ab64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/arSolrPlugin/config/solrSchema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ mapping:
_i18nFields: [name]
dynamic: strict
dynamic: strict
properties:
source_culture: { type: text, multivalue: true }

note:
_attributes:
Expand Down Expand Up @@ -616,8 +618,8 @@ mapping:
alternative_identifiers:
type: object
properties:
label: { type: text }
identifier: { type: text }
label: { type: text, multivalue: true }
identifier: { type: text, multivalue: true }
reference_code:
type: text
fields:
Expand Down
2 changes: 2 additions & 0 deletions plugins/arSolrPlugin/lib/arSolrPlugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ private function addSubProperties($properties, &$propertyFields, $parentType = '
|| fnmatch('QubitActor.otherNames.i18n.*.name', $fieldName)
|| fnmatch('QubitActor.occupations.i18n.*.name', $fieldName)
|| fnmatch('QubitActor.occupations.i18n.*.content', $fieldName)
|| fnmatch('QubitActor.parallelNames.i18n.*.name', $fieldName)
|| fnmatch('QubitActor.standardizedNames.i18n.*.name', $fieldName)
|| fnmatch('QubitRepository.contactInformations.i18n.*.contactType', $fieldName)
|| fnmatch('QubitRepository.contactInformations.i18n.*.city', $fieldName)
|| fnmatch('QubitRepository.contactInformations.i18n.*.region', $fieldName)
Expand Down

0 comments on commit c91ab64

Please sign in to comment.