[
https://issues.apache.org/jira/browse/LUCENE-8119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16313193#comment-16313193
]
Robert Muir commented on LUCENE-8119:
-------------------------------------
I don't understand the 0 stuff. This shouldn't happen right? At query-time we
fixed sims so that they aren't ever asked to score non-existent fields/terms,
to clear up all the divide-by-zero issues and make the api simpler. But this is
an index-time API, the question is do we really invoke this when there are no
terms?
and why write a 0 value at all, if norms are supposed to be sparse we shouldnt
call this method nor write anything, correct? we certainly won't be scoring any
terms for the field on such documents, no value is needed.
> 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: [email protected]
For additional commands, e-mail: [email protected]