From 05161a2e8b70f532f360959cf023ceb90539dc62 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Thu, 10 Aug 2017 13:40:54 -0300 Subject: [PATCH] now using field bias even if set to 0 and updated toc label for library site results --- targets/solr_site/js/solr_site_results.js | 2 +- targets/solr_site/roblib_search_solr_site.module | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/targets/solr_site/js/solr_site_results.js b/targets/solr_site/js/solr_site_results.js index 05334df..c86be64 100644 --- a/targets/solr_site/js/solr_site_results.js +++ b/targets/solr_site/js/solr_site_results.js @@ -35,7 +35,7 @@ Drupal.behaviors.roblib_search_solr_site_results = { if (numberOfDocs > 0) { results_url = 'see all results (' + total_found + ') '; - move_me_div_url = 'Website & Guides (' + move_me_div_url = 'Library Site (' + total_found + ') '; jQuery('#' + 'roblib-search-solr-site-results-more').empty().append(results_url); jQuery('#' + 'roblib-solr-more-results-results').empty().append(results_url); diff --git a/targets/solr_site/roblib_search_solr_site.module b/targets/solr_site/roblib_search_solr_site.module index 0cf8870..23fff7c 100755 --- a/targets/solr_site/roblib_search_solr_site.module +++ b/targets/solr_site/roblib_search_solr_site.module @@ -357,11 +357,10 @@ function roblib_search_solr_site_get_results($query = NULL, $type) { $solr_url = variable_get('roblib_search_solr_site_url', 'http://localhost:8983/solr'); $num_results = variable_get('roblib_search_solr_site_num_results', '5'); $solr_qf = apachesolr_environment_variable_get(apachesolr_default_environment(), 'field_bias'); + $qf = ""; foreach ($solr_qf as $key => $value){ - if($value != "0") { $qf .= $key . '^' . $value . ' '; - } } $data = array( 'q' => $query,