- 🇫🇷France okin
Thank you #8 save my day, relevance was always 0 once sorting by relevance.
Hello,
I am trying to sort the results of a view by relevance (score)
I see that the score is always set to 1.
This has led me to this issue which is very similar to our setup.
https://www.drupal.org/project/search_api_solr/issues/2800261 →
We use an aggregated field (boost 1) as exposed filter of the view.
We have other fields (term name of taxonomies etc) among the indexed contents with a higher boost.
I have debugged a bit an I see that the drupal module uses the fq parameter to query solr and not the q parameter. (I don't know if this is normal)
If I debug the query directly on solr:
From what I see in issue 2800261, it should be possible to have an exposed filter using the aggreagated field but still have score other than 1 for the different results.
Since we are not very familiar with solr we can miss something and I didn't find any usefule info about that in the documentation .
Thanks for your tips
Closed: works as designed
1.2
Documentation
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Thank you #8 save my day, relevance was always 0 once sorting by relevance.