blob: 63c5b9a44e873fee758c8f16128f64ac15c04a23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
---
"Basic percolation tests":
- do:
indices.create:
index: test_index
- do:
index:
index: test_index
type: .percolator
id: test_percolator
body:
query:
match_all: {}
- do:
indices.refresh: {}
- do:
percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
- match: {'total': 1}
- match: {'matches': [{_index: test_index, _id: test_percolator}]}
- do:
count_percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
- is_false: matches
- match: {'total': 1}
|