- Issue created by @drunken monkey
- Merge request !185Resolve #3485260: Deprecate negative item scores/boosts โ (Open) created by drunken monkey
- ๐ฆ๐นAustria drunken monkey Vienna, Austria
Created a change record โ and an MR.
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).
Active
1.0
Framework
Created a change record โ and an MR.