2013-07-23 19:39:20 -04:00
|
|
|
---
|
|
|
|
"Basic percolation tests":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_index
|
2013-11-07 08:25:24 -05:00
|
|
|
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}
|
2013-09-23 07:53:45 -04:00
|
|
|
- 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}
|