sort by relevance in search api index views

Created on 17 May 2024, 11 months ago
Updated 4 June 2024, 10 months ago

When adding an exposed sort by relevance in a search api view index, the select option has only the option "sort by relevance".

What is the use of that exposed sort then ?

Should there not be another option "unrelevant" :) ? or some sort of other option that does not use the boost option of the indexed fields ?

On top of that, The asc or desc does not seem to have an effect on my search list.
What are the requirement to make it working ?

Regards,

💬 Support request
Status

Fixed

Version

1.0

Component

Views integration

Created by

🇫🇷France matoeil

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

Comments & Activities

  • Issue created by @matoeil
  • Status changed to Fixed 11 months ago
  • 🇦🇹Austria drunken monkey Vienna, Austria

    That’s just how Views works, nothing to do with this module. You need to add multiple exposed sorts for them to be useful, then the user can pick between those.
    “Sort by relevance” only has an effect if there are search keywords, maybe that’s why ascending and descending were the same in your case?

  • 🇫🇷France matoeil

    i don't see the relevance of that relevance sorting. Who would want an unrelevant sorting ?

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024