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 Getty search relevancy issue #162

Merged
merged 3 commits into from
May 2, 2024
Merged

Fix Getty search relevancy issue #162

merged 3 commits into from
May 2, 2024

Conversation

mbklein
Copy link
Contributor

@mbklein mbklein commented May 2, 2024

When searching AAT for photographs, the actual photographs result was buried down as the 47th result due to Getty's weird relevancy ranking. This PR adjusts the Getty SPARQL queries (for AAT, TGN, and ULAN) to make sure that exact matches come up first, followed by results with the search term anchored at the beginning, followed by everything else.

It also updates some tests and all of the VCR cassettes to represent some operational and data changes in the authorities themselves.

@mbklein mbklein requested a review from kdid May 2, 2024 16:55
@mbklein mbklein merged commit 9da7c6b into main May 2, 2024
7 checks passed
@mbklein mbklein deleted the getty-relevancy-ordering branch May 2, 2024 17:09
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.

2 participants