File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
server/src/main/java/org/elasticsearch/rest/action/search
x-pack/plugin/rank-rrf/src/yamlRestTest/resources/rest-api-spec/test/rrf Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ private SearchCapabilities() {}
3636 /** knn query where k defaults to the request size. */
3737 private static final String K_DEFAULT_TO_SIZE = "k_default_to_size" ;
3838
39+ /** Support deprecated window_size field in rank. */
40+ private static final String RRF_WINDOW_SIZE_SUPPORT_DEPRECATED = "rrf_window_size_support_deprecated" ;
41+
3942 private static final String RANDOM_SAMPLER_WITH_SCORED_SUBAGGS = "random_sampler_with_scored_subaggs" ;
4043 private static final String OPTIMIZED_SCALAR_QUANTIZATION_BBQ = "optimized_scalar_quantization_bbq" ;
4144 private static final String KNN_QUANTIZED_VECTOR_RESCORE_OVERSAMPLE = "knn_quantized_vector_rescore_oversample" ;
@@ -54,6 +57,7 @@ private SearchCapabilities() {}
5457 capabilities .add (MOVING_FN_RIGHT_MATH );
5558 capabilities .add (K_DEFAULT_TO_SIZE );
5659 capabilities .add (KQL_QUERY_SUPPORTED );
60+ capabilities .add (RRF_WINDOW_SIZE_SUPPORT_DEPRECATED );
5761 CAPABILITIES = Set .copyOf (capabilities );
5862 }
5963}
Original file line number Diff line number Diff line change @@ -104,10 +104,12 @@ setup:
104104" Simple rank with old window_size param " :
105105
106106 - requires :
107- cluster_features : ["gte_v8.16.0"]
108- reason : " deprecation added in 8.16"
109- test_runner_features : warnings
110-
107+ capabilities :
108+ - method : POST
109+ path : /_search
110+ capabilities : [ rrf_window_size_support_deprecated ]
111+ test_runner_features : capabilities
112+ reason : " add deprecated field [window_size] in 8.18 to support upgrade"
111113 - do :
112114 warnings :
113115 - " Deprecated field [rank] used, replaced by [retriever]"
You can’t perform that action at this time.
0 commit comments