-
Notifications
You must be signed in to change notification settings - Fork 495
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
Faceting breaks when searching for :, /, }, ], ) #218
Comments
Original Redmine Comment I updated the description of this ticket after doing a little more research and committed some test data: 6d33315 added test data for search on :, -, bug #3632 The problem is not solved. I'm having trouble generally with escaping the characters. See scripts/search/tests/special-characters for some example raw Solr queries. I'm also not sure on what our approach should be. This ticket has eaten up a couple hours today. I'm going to work on more pressing matters. |
Original Redmine Comment Recent conversation on this: http://lucene.472066.n3.nabble.com/Solr-special-characters-like-and-amp-td4129854.html |
Original Redmine Comment I just committed this: don't enter solrDownMode on an unparseable query #3632 · 18337ab · IQSS/dataverse - 18337ab Here's how it looks right now from the search API:
|
Original Redmine Comment As of this commit... show solr errors (if any) on debug page #3632 · c447bf2 · IQSS/dataverse - c447bf2 ... you should be able to see... "errorFromSolr: Trouble parsing query? org.apache.solr.search.SyntaxError: Cannot parse ':': Encountered " ":" ": "" at line 1, column 0. Was expecting one of: ... "+" ... "-" ... ... "(" ... "" ... ... ... ... ... ... "[" ... "{" ... ... ... ... "" ..." ... when you turn on debug=true and give it an unparseable query (i.e. "q=:")like this: http://dvn-build.hmdc.harvard.edu/dataverse.xhtml?q=%3A&debug=true |
Original Redmine Comment issue resolved |
Author Name: Elda Sotiri (@esotiri)
Original Redmine Issue: 3632, https://redmine.hmdc.harvard.edu/issues/3632
Original Date: 2014-03-04
Original Assignee: Elda Sotiri
Faceting breaks (the app enters "Solr down mode") when searching for :, /, }, ], )
there might be other characters, I will keep testing for more.
Links to review:
http://stackoverflow.com/questions/18277609/search-in-solr-with-special-characters
https://lucene.apache.org/core/3_6_0/queryparsersyntax.html#Escaping%20Special%20Characters
This seems like a nice current list of characters we might want to treat in a special way (escape in some cases):
This is from https://github.com/apache/lucene-solr/blob/lucene_solr_4_6_0/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java#L231 which is a more recent version of the link provided here: http://lucene.472066.n3.nabble.com/What-is-the-full-list-of-Solr-Special-Characters-td4094053.html
Related issue(s): #131
Redmine related issue(s): 3540
The text was updated successfully, but these errors were encountered: