-
Notifications
You must be signed in to change notification settings - Fork 0
Ett 1200 facet search error #107
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as expected. See the original ticket for a follow-up about the display of this previously-broken facet now that we can select it without an error -- the quotes are missing when the facet is in the "Current Filters". May be out of scope and it's just cosmetic. APPROVE
EDIT: I just put a screen shot on the ticket
aelkiss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main question I have is if we should be doing something more general for escaping queries. In particular it doesn't seem like this will address the issues with characters like ~ and \. Given that these don't cause issues in ls, I think it's worth seeing if we can apply the more general escaping strategy.
… Minimum change on build_and_or_onephrase function to solve the issue with queries that consist on ~ and /
…d Apply escape to create q and fq Solr fields
bc9f577 to
7f4f26d
Compare
…rule to each semantic representation
…of the fields lcnormalized and stdnum; Document the logic to escape Solr input queries
Issue: Catalog search fails with a different input query because Solr special characters are not escaped.
The main goal of this task is to fix the search algorithm for preventing query parser errors and injection.
Ticket: ETT-1200
As part of this PR:
The search algorithm in production consist on:
*:*.~, \, table~~2, ~~~///What changes have been implemented on the current PR?
*:*.~, \, table~~2, ~~~///qfield is created.fqfield is createdHow to test:
Next step:
lucene_escapeshould be replaced bylucene_escape_fq.