You are here

function apachesolr_views_query::remove_boost_query in Apache Solr Views 6

remove boost query

Parameters

string $field_name: the name of the field in the schema

string $field_value: The value of the field we are boosting. Can be NULL to remove all boosts on $field_name

File

./apachesolr_views_query.inc, line 951

Class

apachesolr_views_query
Class for handling a view that gets its data not from the database, but from a Solr server.

Code

function remove_boost_query($field_name, $field_value = NULL) {
  if ($field_value) {
    unset($this->_boost_queries[$field_name][$field_value]);
  }
  else {
    unset($this->_boost_queries[$field_name]);
  }
}