Skip to content

Commit 1924f9c

Browse files
committed
improve
1 parent 2c1f686 commit 1924f9c

File tree

1 file changed

+20
-1
lines changed
  • rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors

1 file changed

+20
-1
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/40_knn_search.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,26 @@ setup:
623623
element_type: float
624624
dims: 5
625625
settings:
626-
index.max_knn_num_candidates: 100
626+
index.max_knn_num_candidates: 500
627+
628+
- do:
629+
search:
630+
index: test_num_candidates
631+
body:
632+
knn:
633+
field: vector
634+
query_vector: [ -0.5, 90.0, -10, 14.8, -156.0 ]
635+
k: 2
636+
num_candidates: 200
637+
638+
- match: { hits.total.value: 0 }
639+
640+
- do:
641+
indices.put_settings:
642+
index: test_num_candidates
643+
body:
644+
index.max_knn_num_candidates: 100
645+
627646
- do:
628647
catch: /\[num_candidates\] cannot exceed \[100\]/
629648
search:

0 commit comments

Comments
 (0)