Deprecate negative item scores/boosts

Created on 3 November 2024, 13 days ago

I think it is common practice across all search frameworks that item scores (or relevancy, โ€ฆ) and boosts can only be non-negative numbers. However, we never specify that in the Search API framework, even though some of the code (e.g., the Database backend) implicitly assumes it. We now even got a bug report ( ๐Ÿ’ฌ Support: Indexable negative number Active ) where indexing failed because of this.

We should officially declare that scores and boosts are non-negative and deprecate setting negative score/boost values in preparation of failing directly on them (probably with a RuntimeException so it doesnโ€™t need to be caught).

๐Ÿ“Œ Task
Status

Active

Version

1.0

Component

Framework

Created by

๐Ÿ‡ฆ๐Ÿ‡นAustria drunken monkey Vienna, Austria

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024