OpenSearch/rest-api-spec/test/percolate/17_empty.yaml

32 lines
503 B
YAML
Raw Normal View History

---
"Basic percolation tests on an empty cluster":
- do:
indices.create:
index: test_index
- do:
indices.refresh: {}
- do:
percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
- match: {'total': 0}
- match: {'matches': []}
- do:
count_percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
- is_false: matches
- match: {'total': 0}