---
"Basic delete_by_query":
- do:
index:
index: test_1
type: test
id: 1
body: { foo: bar }
id: 2
body: { foo: baz }
id: 3
body: { foo: foo }
indices.refresh: {}
delete_by_query:
body:
query:
match:
foo: bar
count:
- match: { count: 2 }