You are here

function apachesolr_proximity_reset_boost in Apache Solr Term Proximity 7

Same name and namespace in other branches
  1. 6.3 apachesolr_proximity.module \apachesolr_proximity_reset_boost()

Resets the proximity boost for an enviromnent to its default value (8.0).

Parameters

string $env_id: The machine name of the environment.

1 call to apachesolr_proximity_reset_boost()
apachesolr_proximity_bias_form_reset in ./apachesolr_proximity.module
Form submission handler for apachesolr_search_bias_form.

File

./apachesolr_proximity.module, line 50
Applies proximity boosting to Solr searches so that the distance between two or more terms is factored in the relevancy.

Code

function apachesolr_proximity_reset_boost($env_id) {
  apachesolr_environment_variable_del($env_id, APACHESOLR_PROXIMITY_VARIABLE);
}