Use Bias with apachesolr module I want to use Apache Solr in my site build with Drupal7.
The server is UP, simples searches are working but I can't boost a field with bias.

For example, I boosted the title (or label in the administration page), giving him a 5 in the select field.

After re-index the node, I searched and the order of the result still the same.

I tried to create a little module with apachesolr's hook to watch the document it send to solr server.

hook_apachesolr_index_documents_alter():

[_fieldBoosts:protected] =&gt; Array
(
[id] =&gt; 
[site] =&gt; 
[hash] =&gt; 
[entity_id] =&gt; 
[entity_type] =&gt; 
[bundle] =&gt; 
[bundle_name] =&gt; 
[path] =&gt; 
[url] =&gt; 
[language] =&gt; 
[path_alias] =&gt; 
[label] =&gt; 
[content] =&gt; 
[teaser] =&gt; 
[ss_name] =&gt; 
[tos_name] =&gt; 
[ss_name_formatted] =&gt; 
[tos_name_formatted] =&gt; 
[is_uid] =&gt; 
[bs_status] =&gt; 
[bs_sticky] =&gt; 
[bs_promote] =&gt; 
[is_tnid] =&gt; 
[bs_translate] =&gt; 
[ss_language] =&gt; 
[ds_created] =&gt; 
[ds_changed] =&gt; 
[ds_last_comment_or_change] =&gt; 
[is_comment_count] =&gt; 
[type_name] =&gt; 
[created] =&gt; 
[changed] =&gt; 
[last_comment_or_change] =&gt; 
[comment_count] =&gt; 
[name] =&gt; 
[tos_content_extra] =&gt; 
[access__all] =&gt; 
)


All the data are empty.

This is a screenshot of my module setting page.

screenshot http://img338.imageshack.us/img338/7984/drupalsolrconf.png
To verify the boost values are included in your queries, tail the Solr request.log file.  You'll see things like &amp;qf=label%5E5.0 (%5e is a caret ^, which marks the boost value).

Another useful trick for optimizing the scores is to include the score in your themed results output.  You may find the boosts are affecting the scores, but aren't high enough to substantially change the ranking.  This can be added with a small hook:

function hook_preprocess_search_result(&amp;$variables) {
  if (user_access('administer search')) {
    $variables['title_suffix'] = '&lt;code&gt;[score: ' . $variables['result']['score'] . ']&lt;/code&gt;';
  }
}