lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <>
Subject [jira] [Updated] (LUCENE-7996) Should we require positive scores?
Date Fri, 01 Dec 2017 10:31:00 GMT


Adrien Grand updated LUCENE-7996:
    Attachment: LUCENE-7996.patch

New patch that maps negative scores to 0. The explanation says when this happens so that this
change is not too trappy.

> Should we require positive scores?
> ----------------------------------
>                 Key: LUCENE-7996
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Wish
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7996.patch, LUCENE-7996.patch
> Having worked on MAXSCORE recently, things would be simpler if we required that scores
are positive. Practically, this would mean 
>  - forbidding/fixing similarities that may produce negative scores (we have some of them)
>  - forbidding things like negative boosts
>  - fixing the scoring formula of some queries like {{BoostingQuery}} (which subtracts
a score to another score) so that the end result may never be negative
> So I'd be curious to have opinions whether this would be a sane requirement or whether
we need to be able to cope with negative scores eg. because some similarities that we want
to support produce negative scores by design.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message