Skip to content

Commit 7d3e655

Browse files
committed
add a test without pruning to yaml
1 parent 7c0a3e7 commit 7d3e655

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,15 @@ setup:
345345
model_id: text_expansion_model
346346
model_text: "octopus comforter smells"
347347
pruning_config: { }
348+
---
349+
"Test text-expansion that displays error for invalid queried field type without prune config":
350+
- do:
351+
catch: /\[keyword\] is not an appropriate field type for this query/
352+
search:
353+
index: index-with-rank-features
354+
body:
355+
query:
356+
text_expansion:
357+
source_text:
358+
model_id: text_expansion_model
359+
model_text: "octopus comforter smells"

0 commit comments

Comments
 (0)