[ 
https://issues.apache.org/jira/browse/LUCENE-8119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16313280#comment-16313280
 ] 

Robert Muir commented on LUCENE-8119:
-------------------------------------

Right, I think its better to look at 0 as just an impossible/unused value: 
that's the perspective at query-time for the similarity class so it would be 
good to match that at index-time. All the divide by zero possibilities caused a 
real mess before.

> Remove SimScorer.maxScore(maxFreq)
> ----------------------------------
>
>                 Key: LUCENE-8119
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8119
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-8119.patch
>
>
> Now that SimScorer directly takes a frequency and a norm, this can be 
> replaced with {{SimScorer.freq(maxFreq, 1)}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to