[ https://issues.apache.org/jira/browse/LUCENE-7996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649524#comment-16649524 ]
Adrien Grand commented on LUCENE-7996: -------------------------------------- In such a case, these optimizations are not disabled but since we assume unbounded scores for any range of doc ids, they are inefficient in practice (see eg. https://github.com/apache/lucene-solr/blob/master/lucene/queries/src/java/org/apache/lucene/queries/function/FunctionScoreQuery.java#L218-L220). > Should we require positive scores? > ---------------------------------- > > Key: LUCENE-7996 > URL: https://issues.apache.org/jira/browse/LUCENE-7996 > Project: Lucene - Core > Issue Type: Wish > Reporter: Adrien Grand > Priority: Minor > Fix For: master (8.0) > > Attachments: LUCENE-7996.patch, 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 > 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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org