You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, the edismax notion of boolean operators doesn't align well with user expectations and there's a handful of browse categories (like 100) that probably break without adv search's query parsing, especially the ones that mix boolean operators:
{"q"=>"virgin OR madonna AND child", "search_field"=>"search"}
{"search_field"=>"search", "q"=>"europe AND street OR opening"},
These are probably the problematic ones: Spotlight::Search.pluck(:query_params).select { |x| x && x['q'] && x['q'] =~ / (NOT|AND|OR) /i }
The Blacklight Advanced Search gem was added to support Boolean searching as a workaround for a Solr issue, see: #322
We've since updated to newer versions of Solr and switched to the
edismax
query parser, which supports Boolean operators. We might have to fiddle with themm
settings as we did in DLME: https://github.com/sul-dlss/dlme/blob/main/app/models/search_builder.rb#L21-L32I do not think we are using any other features of the advanced search gem in exhibits.
The text was updated successfully, but these errors were encountered: