Skip to content

Commit d21ec3e

Browse files
Also add test in BWC tests
1 parent 21220b2 commit d21ec3e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,31 @@ setup:
447447
- not_exists: fields.dense_field.inference.chunks.text
448448
- not_exists: fields.dense_field.inference.chunks
449449
- not_exists: fields.dense_field.inference
450+
451+
---
452+
"Field caps with semantic query filter does not fail":
453+
# We need at least one document present to exercise can-match phase
454+
- do:
455+
index:
456+
index: test-index
457+
id: doc_1
458+
body:
459+
sparse_field: "This is a story about a cat and a dog."
460+
refresh: true
461+
462+
- do:
463+
field_caps:
464+
index: test-index
465+
fields: "*"
466+
body:
467+
index_filter:
468+
semantic:
469+
field: "sparse_field"
470+
query: "test"
471+
472+
- match: { indices: [ "test-index" ] }
473+
- match: { fields.sparse_field.text.searchable: true }
474+
450475
---
451476
"Users can set dense vector index options and index documents using those options":
452477
- requires:

0 commit comments

Comments
 (0)