Deprecate negative item scores/boosts

Created on 3 November 2024, about 2 months 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