From 56eea51cb7eb874dd61aee49c892f2639d6d614b Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Thu, 27 Mar 2025 09:12:56 -0400 Subject: [PATCH] Update bbq test data to better distinguish docs (#125705) Adjust the test data. I verified that the scores are now more distinguishable when: - each doc has its own segment - when 1 & 2 are in the same segment but 3 is alone - 2 & 3 in the same segment but 1 alone - 1 & 3 in the same segment but 2 alone - all three in the same segment closes: https://github.com/elastic/elasticsearch/issues/123727 closes: https://github.com/elastic/elasticsearch/issues/124848 (cherry picked from commit d84eb1f53f8b50481a4bba17e060a12fc43070ce) --- .../test/search.vectors/41_knn_search_bbq_hnsw.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_bbq_hnsw.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_bbq_hnsw.yml index abde3e86dd05b..d316f2fc3ca97 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_bbq_hnsw.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_bbq_hnsw.yml @@ -65,7 +65,7 @@ setup: -0.279, 0.402, -0.107, 0.308, -0.273, 0.019, 0.082, 0.399, -0.658, -0.03 , 0.276, 0.041, 0.187, -0.331, 0.165, 0.017, 0.171, -0.203, -0.198, 0.115, -0.007, 0.337, -0.444, 0.615, - -0.657, 1.285, 0.2 , -0.062, 0.038, 0.089, -0.068, -0.058] + -0.683, 1.331, 0.194, -0.157, -0.1 , -0.279, -0.098, -0.176] # Flush in order to provoke a merge later - do: indices.flush: