Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IQSS/8595 - update existing schema and code to make all cvv files multival in solr #8601

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Apr 12, 2022

What this PR does / why we need it: The recent PR #8435 indexes the i18n values of a CVV field. Implicit in that is the fact that CVV fields now must be multivalued in solr to support this. Looking through all of the metadata blocks defined in the current codebase, there is only one field that is CVV that does not allow multiple values (i.e. for the user to add multiple values) that is not already multivalued in solr. (Strangely, so CVV fields that do not allow multiple inputs are already multvalued in solr). That field (journalArticleType) is changed in this PR to be mutlivalued in solr. The PR also changes the logic behind the api/admin/index/solr/schema endpoint, which is used by the update-fields.sh script listed in the guides to update the schema for custom blocks.

Which issue(s) this PR closes:

Closes #8595

Special notes for your reviewer:

Suggestions on how to test this: Enable multiple languages, add a journalArticleType and verify that pre-PR a search fails as described in the issue and after the PR it works. Could also verify that the output for that field in the api/admin/index/solr/schema API call switches from single to multivalued.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: a schema.xml update /reindex is required

Additional documentation: Didn't see any place where this would come up in the documentation about metadata customization since it is an internal calculation that you'd just trust when using the update-fields.sh script.

@coveralls
Copy link

coveralls commented Apr 12, 2022

Coverage Status

Coverage decreased (-0.03%) to 18.962% when pulling cbe1327 on GlobalDataverseCommunityConsortium:IQSS/8595-CVV_solr_updates into a5f703e on IQSS:develop.

@kcondon kcondon self-assigned this Apr 29, 2022
@kcondon kcondon merged commit 7477e7a into IQSS:develop Apr 29, 2022
@pdurbin pdurbin added this to the 5.11 milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single-value fields raise an indexing error when they have translated controlled vocabularies
5 participants