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

Fix search results for works with matching fileset keywords #6645

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

dlpierce
Copy link
Contributor

Summary

Fixes catalog controller spec in koppie and display of works where only the Hyrax::FileSet matches the query.

Guidance for testing, such as acceptance criteria or new user interface behaviors:

  • Given a work where only an attached fileset contains metadata matching the search query, the work is displayed in the catalog controller search results.

Detailed Description

The previous attempt to add Hyrax::FileSet to the existing requirement of "FileSet by way of the !terms query did not work properly, perhaps not filtering at all.

Changes proposed in this pull request:

  • Modify this solr query to allow has_model_ssim to match on any value ending in "FileSet"

@samvera/hyrax-code-reviewers

Fixes inclusion of FileSet and Hyrax::FileSet in catalog search subquery.

Use of wildcard avoids dealing with escaping "::" and matching both "FileSet" and "Hyrax::FileSet"
@dlpierce dlpierce added notes-valkyrie Release Notes: Valkyrie specific notes-bugfix Release Notes: Fixed a bug labels Jan 29, 2024
@jeremyf jeremyf merged commit d31b5d8 into main Jan 29, 2024
4 checks passed
@jeremyf jeremyf deleted the valk-catalog_fileset_search branch January 29, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants