lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Updated] (LUCENE-4543) Bring back TFIDFSim.lengthNorm
Date Tue, 06 Nov 2012 15:30:12 GMT


Robert Muir updated LUCENE-4543:

    Attachment: LUCENE-4543.patch

Here's the patch.

The api bug was introduced when sim was expanded to use norms beside a single byte: at query-time
TFIDFSim is limited to single-byte norms (the code bits are final), but computeNorm is not

I'll commit soon.
> Bring back TFIDFSim.lengthNorm
> ------------------------------
>                 Key: LUCENE-4543
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4543.patch
> We removed this before because of LUCENE-2828,
> but the problem there was the delegator (not the lengthNorm method).
> TFIDFSim requires byte[] norms today. So its computeNorm should be final,
> calling lengthNorm() that returns a byte.
> This way there is no possibility for you to do something stupid.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

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

View raw message