mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 03:45:02 +00:00
Adds tests around serialisation/validation checks for rank evaluation request components * Add null/ empty string checks to RatedDocument constructor * Add mutation test to RatedDocument serialization tests. * Reorganise rank-eval RatedDocument tests and add serialisation test. * Add roundtrip serialisation testing for RatedRequests * Adds serialisation testing and equals/hashcode testing for RatedRequest. * Fixes a bug in previous equals implementation of RatedRequest along the way. * Add roundtrip tests for Precision and ReciprocalRank * Also fixes a bug with serialising ReciprocalRank. * Add roundtrip testing for DiscountedCumulativeGain * Add serialisation test for DocumentKey and fix test init * Add check that relevant doc threshold is always positive for precision. * Check that relevant threshold is always positive for precision and reciprocal rank Closes #21401