benwtrent commented on issue #15408:
URL: https://github.com/apache/lucene/issues/15408#issuecomment-3492853304
Making the following change fixes it. Need to think through if its ever
valid for `score` to be negative and then we scale it to `0` without scaling it
eagerly to `0` before hand.
```
score =
Math.max(
queryCorrections.additionalCorrection()
+ indexCorrections.additionalCorrection()
- 2 * score,
0f);
return 1f / (1f + score);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]