You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically the single absolute score as above 29.0f is not meaningful to test, the test case shouldn't depend on it, as we only care about ranking. We might construct a baseline, then compare with it to test. Otherwise, we could keep facing the same test failures in the future lucene scoring changes.
The text was updated successfully, but these errors were encountered:
As we upgraded to lucene 10 recently. Some original test cases were broken by the new changes of scoring as https://issues.apache.org/jira/browse/LUCENE-8563.
A sample assert is like
assertThat(sr.getHits().getAt(0).getScore(), Matchers.greaterThanOrEqualTo(29.0f));
from https://github.com/opensearch-project/opensearch-learning-to-rank-base/blob/main/src/javaRestTest/java/com/o19s/es/ltr/query/StoredLtrQueryIT.java#L121.Basically the single absolute score as above 29.0f is not meaningful to test, the test case shouldn't depend on it, as we only care about ranking. We might construct a baseline, then compare with it to test. Otherwise, we could keep facing the same test failures in the future lucene scoring changes.
The text was updated successfully, but these errors were encountered: