#772: Heath O'Connell Broken  (apostrophe problems in search)
----------------------------+-----------------
 Reporter:  tbrooks         |      Owner:
     Type:  defect          |     Status:  new
 Priority:  critical        |  Milestone:
Component:  WebSearch       |    Version:
 Keywords:  INSPIRE syntax  |
----------------------------+-----------------
 {{{
 find a o'connell, heath
 }}}


 No longer works as it should.

 Problem appears to be in Paren_parser.


 {{{
 author:o'connell, heath
 }}}


  works fine

 while


 {{{
 (author:"o'connell, heath*" or exactauthor:"o'connell, h *" )
 }}}


 does not:


 {{{

 Search stage 1: search_pattern_parenthesised() searched
 '(author:"o\'connell, heath*" or exactauthor:"o\'connell, h *" )'.

 Search stage 1: search_pattern_parenthesised() returned ['+',
 'author:"o\'connell, heath*" | exactauthor:"o\'connell, h *"'].

 Search stage 1: basic search units are: [['+', "o'connell, heath* |
 exactauthor:o'connell, h *", 'author', 'a']]
 }}}


 Note that the calculation of b_s_u is wrong, exactauthor is included in
 the search to author, not used as a separate search.

 Compare, for axample:


 {{{
 (author:"connell, heath*" or exactauthor:"connell, h *" )
 }}}

 Which yields


 {{{
 Search stage 1: search_pattern_parenthesised() searched '(author:"connell,
 heath*" or exactauthor:"connell, h *" )'.

 Search stage 1: search_pattern_parenthesised() returned ['+',
 'author:"connell, heath*" | exactauthor:"connell, h *"'].

 Search stage 1: basic search units are: [['+', 'connell, heath*',
 'author', 'a'], ['|', 'connell, h *', 'exactauthor', 'a']]

 }}}


 This is a regression, as this did work at one time, so a test should be
 added, as well as the fix identified.

-- 
Ticket URL: <http://invenio-software.org/ticket/772>
Invenio <http://invenio-software.org>

Reply via email to