You are here

function apachesolr_proximity_bias_form_submit in Apache Solr Term Proximity 7

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

Form submission handler for apachesolr_search_bias_form.

1 string reference to 'apachesolr_proximity_bias_form_submit'
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 82
Applies proximity boosting to Solr searches so that the distance between two or more terms is factored in the relevancy.

Code

function apachesolr_proximity_bias_form_submit($form, &$form_state) {
  $boost = $form_state['values'][APACHESOLR_PROXIMITY_VARIABLE];
  apachesolr_proximity_set_boost($form['#env_id'], $boost);
}