We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c0a3e7 commit 7d3e655Copy full SHA for 7d3e655
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search.yml
@@ -345,3 +345,15 @@ setup:
345
model_id: text_expansion_model
346
model_text: "octopus comforter smells"
347
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