Skip to content

Commit 21220b2

Browse files
Move YML test next to other similar tests
1 parent 6219697 commit 21220b2

File tree

2 files changed

+24
-56
lines changed

2 files changed

+24
-56
lines changed

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/100_semantic_text_field_caps.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/10_semantic_text_field_mapping.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,30 @@ setup:
548548
- not_exists: fields.dense_field.inference.chunks
549549
- not_exists: fields.dense_field.inference
550550

551+
---
552+
"Field caps with semantic query filter does not fail":
553+
# We need at least one document present to exercise can-match phase
554+
- do:
555+
index:
556+
index: test-index
557+
id: doc_1
558+
body:
559+
sparse_field: "This is a story about a cat and a dog."
560+
refresh: true
561+
562+
- do:
563+
field_caps:
564+
index: test-index
565+
fields: "*"
566+
body:
567+
index_filter:
568+
semantic:
569+
field: "sparse_field"
570+
query: "test"
571+
572+
- match: { indices: [ "test-index" ] }
573+
- match: { fields.sparse_field.text.searchable: true }
574+
551575
---
552576
"Users can set dense vector index options and index documents using those options":
553577
- requires:

0 commit comments

Comments
 (0)