Add comment.

This commit is contained in:
Harpreet Sangar 2023-12-18 16:25:09 +05:30 committed by GitHub
parent 7e765e30fb
commit daa8e28d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2134,6 +2134,7 @@ TEST_F(CollectionSortingTest, OptionalFilteringViaSortingWildcard) {
results = nlohmann::json::parse(json_res);
ASSERT_EQ(4, results["hits"].size()); // 3 Adidas 1 Puma documents
// Because of `_eval`, Puma document will be on top even when having a lower text match score than Adidas documents.
expected_ids = {"5", "4", "2", "1"};
for(size_t i = 0; i < expected_ids.size(); i++) {
ASSERT_EQ(expected_ids[i], results["hits"][i]["document"]["id"].get<std::string>());