function apachesolr_proximity_set_boost in Apache Solr Term Proximity 7
Same name and namespace in other branches
- 6.3 apachesolr_proximity.module \apachesolr_proximity_set_boost()
Sets the proximity boost for an enviromnent.
Parameters
string $env_id: The machine name of the environment.
float $boost: The boost factor.
1 call to apachesolr_proximity_set_boost()
- apachesolr_proximity_bias_form_submit in ./
apachesolr_proximity.module - Form submission handler for apachesolr_search_bias_form.
File
- ./
apachesolr_proximity.module, line 27 - Applies proximity boosting to Solr searches so that the distance between two or more terms is factored in the relevancy.
Code
function apachesolr_proximity_set_boost($env_id, $boost) {
apachesolr_environment_variable_set($env_id, APACHESOLR_PROXIMITY_VARIABLE, $boost);
}