www.fgks.org   »   [go: up one dir, main page]

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

Make title sorting ignore diacriticals #8736

Merged
merged 1 commit into from Jan 20, 2024

Conversation

mheiman
Copy link
Collaborator
@mheiman mheiman commented Jan 20, 2024

Closes #8722

Title sorting now ignores diacriticals.

Technical

This solution replaces the lowercase filter on the text_title_sort SOLR type with the icuFolding filter, which not only lowercases, but also removes diacritical marks from the search tokens according to Unicode standards.

A SOLR reindex will be required for this change to take effect.

Testing

The test case in the issue, https://openlibrary.org/authors/OL291650A/Max_Ernst?q=&sort=title should now colllate Dechets and Déchets together.

Screenshot

I add some works in my development instance to test this behavior.

Screenshot 2024-01-19 at 9 26 47 PM

Before this change, the "With Mark Twain" work sorted between "Wit" and "Wít".

Stakeholders

@mheiman @tfmorris @cdrini

Copy link
Collaborator
@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Nice Mark! Not testing the change makes sense and looks well tested. Will go out in next solr deploy

@cdrini cdrini merged commit e570f0d into internetarchive:master Jan 20, 2024
3 checks passed
@mheiman mheiman deleted the 8722/feature/sorting_enhance branch January 20, 2024 16:03
@cdrini cdrini self-assigned this Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Work title collation on author page should be diacritic insensitive
2 participants