OpenSearch/rest-api-spec/test/delete_by_query/10_basic.yaml

43 lines
664 B
YAML
Raw Normal View History

2013-07-21 18:40:20 -04:00
---
"Basic delete_by_query":
2013-07-21 18:40:20 -04:00
- do:
index:
index: test_1
type: test
id: 1
body: { foo: bar }
- do:
index:
index: test_1
type: test
id: 2
body: { foo: baz }
- do:
index:
index: test_1
type: test
id: 3
body: { foo: foo }
- do:
indices.refresh: {}
- do:
delete_by_query:
index: test_1
body:
query:
match:
foo: bar
2013-07-21 18:40:20 -04:00
- do:
indices.refresh: {}
- do:
count:
index: test_1
- match: { count: 2 }