lib/blacklight/solr/search_builder_behavior.rb in blacklight-7.33.1 vs lib/blacklight/solr/search_builder_behavior.rb in blacklight-7.34.0

- old
+ new

@@ -100,11 +100,12 @@ solr_parameters[:defType] = 'lucene' solr_parameters[:spellcheck] = 'false' end def add_search_field_with_json_query_parameters(solr_parameters) - bool_query = search_field.clause_params.transform_values { |v| v.merge(query: search_state.query_param) } + return unless search_state.query_param + bool_query = search_field.clause_params.transform_values { |v| v.merge(query: search_state.query_param) } solr_parameters.append_boolean_query(:must, bool_query) end # Transform "clause" parameters into the Solr JSON Query DSL def add_adv_search_clauses(solr_parameters)