Skip to content

Commit

Permalink
feat(solr-schema): Add multi-valued creator field with subfields for …
Browse files Browse the repository at this point in the history
…improved indexing

- Added `creator` as a multi-valued field to support multiple creators per dataset.
- Introduced `creator_name` and `creator_identifier` subfields to store detailed creator information.
- Updated schema to align `creator` field structure with existing `contact_point` field approach.
- Ensured `creator_name` and `creator_identifier` fields are indexed and stored correctly for accurate search and retrieval.
  • Loading branch information
Hans-Chrstian committed Aug 13, 2024
1 parent 000e336 commit 1ed297a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion solr/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,18 @@ attribute with the form `ckan-X.Y` -->
<field name="provenance" type="string" indexed="true" stored="true" multiValued="false" />
<field name="spatial_uri" type="string" indexed="true" stored="true" multiValued="false" />
<field name="contact_uri" type="string" indexed="true" stored="true" multiValued="false" />
<field name="contact_name" type="text_general" indexed="true" stored="true" />
<field name="contact_point" type="string" indexed="true" stored="true" multiValued="true" />
<field name="creator" type="string" indexed="true" stored="true" multiValued="true" />
<field name="creator_name" type="text_general" indexed="true" stored="true" />
<field name="creator_identifier" type="string" indexed="true" stored="true" />
<field name="resources_formats" type="string" indexed="true" stored="true"
multiValued="true" />
<field name="publisher_name" type="string" indexed="true" stored="true" multiValued="false" />
<field name="publisher_uri" type="string" indexed="true" stored="true" />
<field name="publisher_email" type="text_general" indexed="true" stored="true" />
<field name="publisher_url" type="string" indexed="true" stored="true" />
<field name="publisher_type" type="string" indexed="true" stored="true" />

<field name="capacity" type="string" indexed="true" stored="true" multiValued="false" />
<field name="permission_labels" type="string" indexed="true" stored="false"
Expand Down Expand Up @@ -242,5 +250,7 @@ attribute with the form `ckan-X.Y` -->
<copyField source="res_description" dest="text" />
<copyField source="maintainer" dest="text" />
<copyField source="author" dest="text" />

<copyField source="creator_name" dest="text" />
<copyField source="contact_name" dest="text" />
<copyField source="publisher_name" dest="text" />
</schema>

0 comments on commit 1ed297a

Please sign in to comment.