You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/70_semantic_text_exists_query.yml
+60Lines changed: 60 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ setup:
44
44
inference_field:
45
45
type: semantic_text
46
46
inference_id: sparse-inference-id
47
+
text_field:
48
+
type: text
47
49
48
50
- do:
49
51
indices.create:
@@ -54,6 +56,8 @@ setup:
54
56
inference_field:
55
57
type: semantic_text
56
58
inference_id: dense-inference-id
59
+
text_field:
60
+
type: text
57
61
58
62
---
59
63
"Exists query with no indexed documents":
@@ -142,3 +146,59 @@ setup:
142
146
field: "inference_field"
143
147
144
148
- match: { hits.total.value: 1 }
149
+
150
+
---
151
+
"Exists query with indexed documents when semantic text field doesn't have a value":
0 commit comments