When you set boost params in backoffice (bias tabs), some parameters are not considered. for exemple, if you set the weight 21.0 to the title, content related are not boosted.
This is caused by the function apachesolr_search_add_boost_params where the score of some field are multiplied by 40.00 (hard-codes) .....

Comments

ciclismo85 created an issue.

Miranda Jose’s picture

I can confirm this, I tried to set boost parameters for multiple fields and multiple content types but the boost parameters seems to be ignored in search results.

retorque’s picture

I'm seeing something similar, but I'm not convinced it is caused by multiplying by 40. I have a configured the boost for a custom field to 1000.0, and it is still ignored.

I was able to boost custom fields on Solr 3.x. I am now on Solr 5.4.0 (using configuration borrowed from Search API Solr). I don't really have much more information yet, but I'm curious if others seeing this problem might also be on Solr 5.x.

retorque’s picture

I rebuilt my index on Solr 3, and the boost for my custom field works. I'm probably going to try Solr 4.x soon, and I will try to update this thread when I do.

retorque’s picture

I spent a bit of time playing with the search URL and solr_devel. I noticed that if I set df= my custom field, I would get results from that field, even with qf set. After a bit more testing, I discovered that if I set qt=pinkPony, I would get the expected results.

I have altered solrconfig.xml a bit, so it is possible that I messed up the default requestHandler definition, but it is also possible that it is not set.

pale177’s picture

I noticed today that the content was boosted 40x. So a 0.1 bias was corresponding to 4.0

I raised the other biases (url and title) to be greater than 4.0, and I see the correct results popping up now.

Solr devel URI gave me the actual query that was being sent. Wish I had know about the 40x earlier :(