How to boost relevance of Search API solr with the value of a certain field? I am using Search API solr on my site. To get better search results I would like to boost the relevance by the value of a certain numeric field. 
Say, all items have a field A, which is numeric. Now I want to boost the relevance of those itemes by the value of field a, so that, if As value is higher the relevance of the item becomes higher too.
I have absolutely no idea how to do this. Maybe with 

hook_search_api_solr_query_alter() 


But I did not find documentation how to use it. Please hint me in the right direction.
hook_apachesolr_query_alter($query) alter the query after it's prepared and cached.

As per example given in documentation which I found, you can use this hook in similar way to other query_alter hook. E.g -

function hook_apachesolr_query_alter($query) {
  //Adding one more filter.
  $query-&gt;addFilter("is_uid", 1);

  // Only search titles.
  $query-&gt;replaceParam('qf', 'label');
}


Find the documentation by clicking on the mentioned hook name by me. 

EDITED--

Sorry for giving example of other hook of apache solr module. You can find documentation of your hook here hook_search_api_solr_query_alter().

You can find a small snippet for example of this hook like --

function hook_search_api_solr_query_alter(array &amp;$call_args, SearchApiQueryInterface $query) {
  if ($query-&gt;getOption('foobar')) {
    $call_args['params']['foo'] = 'bar';
  }
}


Eric has wrote a nice article with example of this hook.