benwtrent commented on issue #15408: URL: https://github.com/apache/lucene/issues/15408#issuecomment-3492680789
OK, this looks like floating point arithmetic. Not 100% sure how to fix. But here are the values I see on this "nearly equivalent" doc: <img width="674" height="782" alt="Image" src="https://github.com/user-attachments/assets/8e3a691e-2d04-4296-916e-b3fa42365cf8" /> The resulting score ends up being `-8`, which is REALLY close to the perfect score of `0` (given the magnitudes of the values). Basically, ALL the stored values are correct, all the corrections & vector values themselves are exactly the same. However, somewhere along the line, we end up with a rounding error that causes the score to under-shoot by `-8.99` I do not think this is a format error. We just need to fix some math in the scorer to handle this "almost" equivalent case. -- 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]
