Browse Source

added mm paramater to query queries with multiple terms return the same results as default apache solr query

2.x-ebsco
Paul Pound 7 years ago
parent
commit
9b22f663e3
  1. 1
      targets/solr_site/roblib_search_solr_site.module

1
targets/solr_site/roblib_search_solr_site.module

@ -359,6 +359,7 @@ function roblib_search_solr_site_get_results($query_string = NULL, $type) {
$query->addParam('q', $query_string ); // keyword to be searched
$query->addParam('rows', $num_results);
$query->addParam('fq', $type);
$query->addParam('mm', '1');
apachesolr_search_add_boost_params($query);
$response = $query->search();
$json_results = drupal_json_encode($response);

Loading…
Cancel
Save