rajat315315 commented on PR #16431: URL: https://github.com/apache/lucene/pull/16431#issuecomment-5118188025
@msokolov For a non-monotonic function like `sin()`, monotonic flag is NOT set, `DoubleValuesSource.FieldValuesSource.getMaxScore(upTo)` returns `Float.POSITIVE_INFINITY`. Returning `Float.POSITIVE_INFINITY` prevents WAND from skipping any candidate blocks, forcing standard exact evaluation on all documents—**guaranteeing zero correctness regressions for non-monotonic functions.** -- 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]
