Opensolr Search for Drupal 3.4.0 Adds the Minimum Relevance Score Slider
Opensolr Search for Drupal 3.4.0 adds the Minimum Relevance Score slider to Search Tuning, matching the control that already exists in the Opensolr admin.
01 A floor under hybrid results
Hybrid search will always return something. When a query has no good match, the tail of the result set is made up of documents that scored barely above nothing — technically ranked, practically noise. The slider sets a floor: anything scoring below it is dropped.
Crucially, the dropped documents leave the facet counts too. A facet that says twelve results and then shows three relevant ones is worse than no facet at all, so the threshold is applied to both.
02 Setting it
- Where. Search Tuning, in the module's settings.
- Steps. The slider moves in 0.1 increments.
- Default. 0.3.
- Upgrades. An update hook restores the setting for sites coming from older versions, so it is not left unset after the upgrade.