Skip to content

Commit 66aa767

Browse files
committed
Remove obsoleted yaml tests
1 parent dce8dd8 commit 66aa767

File tree

1 file changed

+0
-78
lines changed

1 file changed

+0
-78
lines changed

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

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -214,84 +214,6 @@ setup:
214214
- match: { error.root_cause.0.type: "illegal_argument_exception" }
215215
- match: { error.root_cause.0.reason: "cannot set [search_type] when using [knn] search, since the search type is determined automatically" }
216216

217-
---
218-
"kNN search in _knn_search endpoint":
219-
- skip:
220-
features: [ "allowed_warnings", "headers" ]
221-
- do:
222-
headers:
223-
Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
224-
Accept: "application/vnd.elasticsearch+json;compatible-with=8"
225-
allowed_warnings:
226-
- "The kNN search API has been replaced by the `knn` option in the search API."
227-
knn_search:
228-
index: test
229-
body:
230-
fields: [ "name" ]
231-
knn:
232-
field: vector
233-
query_vector: [ -0.5, 90.0, -10, 14.8, -156.0 ]
234-
k: 2
235-
num_candidates: 3
236-
237-
- match: { hits.hits.0._id: "2" }
238-
- match: { hits.hits.0.fields.name.0: "moose.jpg" }
239-
240-
- match: { hits.hits.1._id: "3" }
241-
- match: { hits.hits.1.fields.name.0: "rabbit.jpg" }
242-
243-
---
244-
"kNN search with filter in _knn_search endpoint":
245-
- requires:
246-
cluster_features: "gte_v8.2.0"
247-
reason: 'kNN with filtering added in 8.2'
248-
test_runner_features: [ "allowed_warnings", "headers" ]
249-
- do:
250-
headers:
251-
Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
252-
Accept: "application/vnd.elasticsearch+json;compatible-with=8"
253-
allowed_warnings:
254-
- "The kNN search API has been replaced by the `knn` option in the search API."
255-
knn_search:
256-
index: test
257-
body:
258-
fields: [ "name" ]
259-
knn:
260-
field: vector
261-
query_vector: [ -0.5, 90.0, -10, 14.8, -156.0 ]
262-
k: 2
263-
num_candidates: 3
264-
filter:
265-
term:
266-
name: "rabbit.jpg"
267-
268-
- match: { hits.total.value: 1 }
269-
- match: { hits.hits.0._id: "3" }
270-
- match: { hits.hits.0.fields.name.0: "rabbit.jpg" }
271-
272-
- do:
273-
headers:
274-
Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
275-
Accept: "application/vnd.elasticsearch+json;compatible-with=8"
276-
allowed_warnings:
277-
- "The kNN search API has been replaced by the `knn` option in the search API."
278-
knn_search:
279-
index: test
280-
body:
281-
fields: [ "name" ]
282-
knn:
283-
field: vector
284-
query_vector: [ -0.5, 90.0, -10, 14.8, -156.0 ]
285-
k: 2
286-
num_candidates: 3
287-
filter:
288-
- term:
289-
name: "rabbit.jpg"
290-
- term:
291-
_id: 2
292-
293-
- match: { hits.total.value: 0 }
294-
295217
---
296218
"Test nonexistent field is match none":
297219
- requires:

0 commit comments

Comments
 (0)