2013-07-24 01:39:20 +02:00
|
|
|
---
|
|
|
|
"Basic percolation tests":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_index
|
2013-11-07 14:25:24 +01:00
|
|
|
type: .percolator
|
2013-07-24 01:39:20 +02: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 18:18:06 +01:00
|
|
|
- match: {'total': 1}
|
2013-09-23 13:53:45 +02:00
|
|
|
- match: {'matches': [{_index: test_index, _id: test_percolator}]}
|
2014-01-20 18:18:06 +01:00
|
|
|
|
|
|
|
- do:
|
|
|
|
count_percolate:
|
|
|
|
index: test_index
|
|
|
|
type: test_type
|
|
|
|
body:
|
|
|
|
doc:
|
|
|
|
foo: bar
|
|
|
|
|
|
|
|
- is_false: matches
|
|
|
|
- match: {'total': 1}
|