File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.highlight
server/src/main/java/org/elasticsearch/rest/action/search Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,12 @@ setup:
146146" Plain highlighter with max_analyzed_offset < -1 should FAIL " :
147147
148148 - requires :
149- cluster_features : ["gte_v7.12.0"]
150- reason : max_analyzed_offset query param added in 7.12.0
149+ test_runner_features : [capabilities]
150+ capabilities :
151+ - method : GET
152+ path : /_search
153+ capabilities : [ max_analyzed_offset_default ]
154+ reason : Behavior of max_analyzed_offset query param changed in 8.18.
151155
152156 - do :
153157 catch : bad_request
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ private SearchCapabilities() {}
4949 private static final String OPTIMIZED_SCALAR_QUANTIZATION_BBQ = "optimized_scalar_quantization_bbq" ;
5050 private static final String KNN_QUANTIZED_VECTOR_RESCORE = "knn_quantized_vector_rescore" ;
5151
52+ private static final String MAX_ANALYZED_OFFSET_DEFAULT = "max_analyzed_offset_default" ;
53+
5254 public static final Set <String > CAPABILITIES ;
5355 static {
5456 HashSet <String > capabilities = new HashSet <>();
@@ -70,6 +72,7 @@ private SearchCapabilities() {}
7072 if (Build .current ().isSnapshot ()) {
7173 capabilities .add (KQL_QUERY_SUPPORTED );
7274 }
75+ capabilities .add (MAX_ANALYZED_OFFSET_DEFAULT );
7376 CAPABILITIES = Set .copyOf (capabilities );
7477 }
7578}
You can’t perform that action at this time.
0 commit comments