Skip to content

Commit da0d0c7

Browse files
committed
fix mixed-cluster failed test
1 parent 520a85c commit da0d0c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/200_dense_vector_docvalue_fields.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ setup:
166166
capabilities:
167167
- method: POST
168168
path: /_search
169-
capabilities: [ dense_vector_docvalue_fields ]
169+
capabilities: [ fix_dense_vector_wrong_fields ]
170170
test_runner_features: [ capabilities, close_to ]
171171
reason: "Support for dense vector doc value fields capability required"
172172
- do:
@@ -236,7 +236,7 @@ setup:
236236
- match: { hits.hits.0._id: "3" }
237237
- length: { hits.hits.0.fields.vec.0: 2 }
238238
- close_to: { hits.hits.0.fields.vec.0.0: { value: 1.0, error: 0.001 } }
239-
- close_to: { hits.hits.0.fields.vec.0.1: { value: 2.0, error: 0.001 } }
239+
- close_to: { hits.hits.0.fields.vec.0.1: { value: 2.0, error: 0.001 } }
240240

241241
---
242242
"dense_vector docvalues with bfloat16":

server/src/main/java/org/elasticsearch/rest/action/search/SearchCapabilities.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ private SearchCapabilities() {}
6262
private static final String CLUSTER_STATS_EXTENDED_USAGE = "extended-search-usage-stats";
6363
private static final String REJECT_INVALID_REVERSE_NESTING = "reject_invalid_reverse_nesting";
6464

65+
private static final String FIX_DENSE_VECTOR_WRONG_FIELDS = "fix_dense_vector_wrong_fields";
66+
6567
public static final Set<String> CAPABILITIES;
6668
static {
6769
HashSet<String> capabilities = new HashSet<>();
@@ -92,6 +94,7 @@ private SearchCapabilities() {}
9294
capabilities.add(EXCLUDE_SOURCE_VECTORS_SETTING);
9395
capabilities.add(CLUSTER_STATS_EXTENDED_USAGE);
9496
capabilities.add(REJECT_INVALID_REVERSE_NESTING);
97+
capabilities.add(FIX_DENSE_VECTOR_WRONG_FIELDS);
9598
CAPABILITIES = Set.copyOf(capabilities);
9699
}
97100
}

0 commit comments

Comments
 (0)