lucene-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/LUCENE-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

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
final.

I'll commit soon.
                
> Bring back TFIDFSim.lengthNorm
> ------------------------------
>
>                 Key: LUCENE-4543
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4543
>             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: http://www.atlassian.com/software/jira

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


Mime
View raw message