[ https://issues.apache.org/jira/browse/LUCENE-3357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082859#comment-13082859 ]
Robert Muir commented on LUCENE-3357: ------------------------------------- For the negative in the IF model, one solution is this: {noformat} - return tfn * (float)(log2((N + 1) / (F + 0.5))); + return tfn * (float)(log2(1 + (N + 1) / (F + 0.5))); {noformat} in quick relevance tests, this was slightly better (likely not significant either way). > Unit and integration test cases for the new Similarities > -------------------------------------------------------- > > Key: LUCENE-3357 > URL: https://issues.apache.org/jira/browse/LUCENE-3357 > Project: Lucene - Java > Issue Type: Sub-task > Components: core/query/scoring > Affects Versions: flexscoring branch > Reporter: David Mark Nemeskey > Assignee: David Mark Nemeskey > Priority: Minor > Labels: gsoc, gsoc2011, test > Fix For: flexscoring branch > > Attachments: LUCENE-3357.patch, LUCENE-3357.patch, LUCENE-3357.patch, > LUCENE-3357.patch, LUCENE-3357.patch, LUCENE-3357.patch, LUCENE-3357.patch, > LUCENE-3357.patch, LUCENE-3357.patch > > > Write test cases to test the new Similarities added in > [LUCENE-3220|https://issues.apache.org/jira/browse/LUCENE-3220]. Two types of > test cases will be created: > * unit tests, in which mock statistics are provided to the Similarities and > the score is validated against hand calculations; > * integration tests, in which a small collection is indexed and then > searched using the Similarities. > Performance tests will be performed in a separate issue. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org