Skip to content

Commit

Permalink
Update validation in sparse_vector yaml tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kderusso committed Dec 16, 2024
1 parent 8d1f456 commit 06067ff
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ setup:
---
"Test sparse_vector requires one of inference_id or query_vector":
- do:
catch: /\[sparse_vector\] requires one of \[query_vector\] or \[inference_id\]/
catch: bad_request
search:
index: index-with-sparse-vector
body:
Expand All @@ -281,16 +281,16 @@ setup:
- match: { status: 400 }

---
"Test sparse_vector only allows one of inference_id or query_vector":
"Test sparse_vector only allows one of query or query_vector":
- do:
catch: /\[sparse_vector\] requires one of \[query_vector\] or \[inference_id\]/
catch: bad_request
search:
index: index-with-sparse-vector
body:
query:
sparse_vector:
field: text
inference_id: text_expansion_model
query: "octopus comforter smells"
query_vector:
the: 1.0
comforter: 1.0
Expand Down

0 comments on commit 06067ff

Please sign in to comment.