Issue 16119
Handle special characters in phrase queries
16119
Reporter: fmendez
Assignee: fmendez
Type: Bug
Summary: Handle special characters in phrase queries
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2014-07-14 11:49:18.373
Updated: 2014-07-14 11:57:35.039
Resolved: 2014-07-14 11:57:35.005
Description: Phrase queries can contain characters that can be interpreted as reserved Solr characters
ERROR [2014-07-14 00:56:49,501+0200] [qtp436156672-16] org.apache.solr.core.SolrCore: org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse '(canonical_name_as_phrase:"Cypsnagra hirundinacea (Lesson, 1831"^1000 OR canonical_name_as_phrase:Cypsnagra^1000) OR (canonical_name_as:Cypsnagra^300 OR canonical_name_as:hirundinacea^200 OR canonical_name_as:(Lesson,^100 OR canonical_name_as:1831^100)': Encountered "" at line 1, column 252.
507-Was expecting one of:
508- ...
509- ...
510- ...
511- "+" ...
512- "-" ...
513- ...
514- "(" ...
515- ")" ...
516- "*" ...
]]>
Author: fmendez@gbif.org
Comment: https://github.com/gbif/common-search/commit/1d21a9fc9562cf97d1e2cdbd8c613f9129da8466
Created: 2014-07-14 11:57:35.036
Updated: 2014-07-14 11:57:35.036