OpenSearch/rest-api-spec/test/search/issue9606.yaml

45 lines
814 B
YAML
Raw Normal View History

---
setup:
- do:
indices.create:
index: test
- do:
index:
index: test
type: test
id: 1
body: { foo: bar }
- do:
indices.refresh:
index: [test]
---
"Test search_type=query_and_fetch not supported from REST layer":
- do:
catch: request
search:
index: test
type: test
search_type: query_and_fetch
body:
query:
match:
foo: bar
---
"Test search_type=dfs_query_and_fetch not supported from REST layer":
- do:
catch: request
search:
index: test
type: test
search_type: dfs_query_and_fetch
body:
query:
match:
foo: bar