aleph-zero 89542facb3 Remove (dfs_)query_and_fetch from the REST API
Remove the ability to specify search type ‘query_and_fetch’ and
‘df_query_and_fetch’ from the REST API.

- Adds REST tests
- Updates REST API spec to remove ‘query_and_fetch’ and
‘df_query_and_fetch’ as options
- Removes documentation for these options

Closes #9606
2015-04-28 15:27:59 -07:00

45 lines
814 B
YAML

---
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