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

expand solr query escape flow to include single quotes #7931

Merged

Conversation

JaydenTeoh
Copy link
Collaborator

Closes #7618

I have expanded the fully_escaped_query function to include queries with single quotes.

Technical

Please note that this is a temporary fix for now as the luqum parser should be accepting single quote characters in the first place. I will try to make a PR on the https://github.com/jurismarches/luqum repo for this issue.

Testing

This following query should no longer have an error:
https://openlibrary.org/search?q=Cornell+%2777%3A+The+Music%2C+the+Myth+and+the+Magnificence+of+the+Grateful+Dead+Show+at+Barton+Hall&mode=everything

Screenshot

No longer facing IllegalCharacterError
image

Stakeholders

@cdrini

@mekarpeles mekarpeles added the Priority: 2 Important, as time permits. [managed] label Jun 5, 2023
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.

@cdrini cdrini merged commit 48e47e5 into internetarchive:master Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 2 Important, as time permits. [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search results page fails to render if search string includes special characters
3 participants