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

Skip found in transcript if there are curly brackets in query #5968

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Aug 1, 2024

On mco-staging, an Atom feed request was failing because the query was other_identifier_sim:/GR[0-9]{8}/. I eventually determined that it was not an issue with this being turned into transcript_tsim:other_identifier_sim and that it was not an issue with the Regex formatting of the query.

The behavior that I ultimately determined was the culprit was the curly braces. Any search conducted in Avalon that contains curly braces will fail, even though the search query is escaped for Solr. I do not know if this is a bug upstream in RSolr with the solr_escape method or if this is an issue in Solr itself where it is not respecting the escaping like it should in this context.

For now, skipping the transcript search if there are curly braces in the query seemed like the easiest approach.

Related issue: #5967

@masaball masaball changed the title Skip transcript search if there are curly brackets in query Skip found in transcript search if there are curly brackets in query Aug 2, 2024
@masaball masaball changed the title Skip found in transcript search if there are curly brackets in query Skip found in transcript if there are curly brackets in query Aug 2, 2024
Copy link
Contributor

@Dananji Dananji left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@masaball masaball merged commit 783f49f into develop Aug 2, 2024
2 checks passed
@masaball masaball deleted the search_brackets branch August 2, 2024 13:56
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