You are here

function apachesolr_proximity_get_boost in Apache Solr Term Proximity 7

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

Gets the proximity boost for an enviromnent.

Parameters

string $env_id: The machine name of the environment.

Return value

float The boost factor.

2 calls to apachesolr_proximity_get_boost()
apachesolr_proximity_apachesolr_query_alter in ./apachesolr_proximity.apachesolr.inc
Implements hook_apachesolr_query_alter().
apachesolr_proximity_form_apachesolr_search_bias_form_alter in ./apachesolr_proximity.module
Implements hook_form_FORM_ID_alter for apachesolr_search_bias_form.

File

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

Code

function apachesolr_proximity_get_boost($env_id) {
  return apachesolr_environment_variable_get($env_id, APACHESOLR_PROXIMITY_VARIABLE, '8.0');
}