OpenSearch/rest-api-spec/test/percolate/15_new.yaml

41 lines
686 B
YAML
Raw Normal View History

2013-07-23 19:39:20 -04:00
---
"Basic percolation tests":
- do:
indices.create:
index: test_index
- do:
index:
index: test_index
type: .percolator
2013-07-23 19:39:20 -04:00
id: test_percolator
body:
query:
match_all: {}
- do:
indices.refresh: {}
- do:
percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
2014-01-20 12:18:06 -05:00
- match: {'total': 1}
- match: {'matches': [{_index: test_index, _id: test_percolator}]}
2014-01-20 12:18:06 -05:00
- do:
count_percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
- is_false: matches
- match: {'total': 1}