app/models/search_builder.rb
# Removes unnecessary elements from the solr query when the homepage is loaded.
# The check for the q parameter ensures that searches, including empty searches, and
# advanced searches are not affected.
Removes unnecessary elements from the solr query when the homepage is loaded.
The check for the q parameter ensures that searches, including empty searches, and
advanced searches are not affected.
Removes unnecessary elements from the solr query when the homepage is loaded . The check for the q parameter ensures that searches including empty searches and advanced searches are not affected .
def homepage_default user_parameters
    if user_parameters['q'].nil? && user_parameters['fq'].size == 0
      user_parameters = streamline_query(user_parameters)
    end
  end
def homepage_default user_parameters if user_parameters [ 'q' ] . nil? && user_parameters [ 'fq' ] . size == 0 user_parameters = streamline_query ( user_parameters ) end end
Removes unnecessary elements from the solr query when the homepage is loaded.
Removes unnecessary elements from the solr query when the homepage is loaded .
user_parameters
<not_specific>