Homec4science

WebSearch: fix SPIRES search terms and quotes

Authored by Travis Brooks <travis@slac.stanford.edu> on Mar 17 2010, 09:47.

Description

WebSearch: fix SPIRES search terms and quotes

  • allows spires search term substitution when the search term precedes a quoted search. However, the search_engine_query_parser was distributing the search term across the quotes: title:"compton scattering" -> title:"compton title:scattering" this is now fixed: title:"compton scattering" -> title:"compton scattering" (closes:#13989)
  • fixed similar problems with parens: find (a mele and t compton) was not getting translated now it is find (a mele and t compton) -> (author:mele and title:compton)
  • see inspire task #13998, the distribution of search terms in the non-quoted case is improved but still needs work find a mele or title this that was -> author:mele or title:this or title:that now this becomes: author:mele or (title:this and title:that) which is correct, but, if nested in another parentheses will cause query parser to fail.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Mar 17 2010, 11:33
Parents
R3600:f86156b45642: WebSearch: affil/collab indexes and SPIRES syntax
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:855acf1f403f: WebSearch: fix SPIRES search terms and quotes (authored by Travis Brooks <travis@slac.stanford.edu>).Mar 17 2010, 11:33