Views "Relevance" sort criterion not sorting by relevance

Created on 14 September 2016, almost 8 years ago
Updated 22 July 2024, about 2 months ago

I have Search API installed, using Solr. I created a view with an exposed Fulltext Search filter [see attached]. This works fine: search results are returned according to relevance to the search term.

However, when I add a Relevance sort [see attached], the results are no longer ordered according to relevance but rather just filtered by the search term, not ordered according to relevance.

Isn't this opposite of what should actually be happening? Adding the Fulltext Search filter should merely filter out content that does not contain the search term, whereas adding the Relevance sort is what should further sort the results according to relevancy.

The reason this is such a problem is because I cannot set a default fallback sort order [see attached] for when there is no search term (no search term would return all results, each with relevance of 1, therefore falling back to a second criterion, see "Authored On" in attached).

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024