36 lines
570 B
YAML
36 lines
570 B
YAML
---
|
|
"Clear scroll":
|
|
- do:
|
|
indices.create:
|
|
index: test_scroll
|
|
- do:
|
|
index:
|
|
index: test_scroll
|
|
type: test
|
|
id: 42
|
|
body: { foo: bar }
|
|
|
|
- do:
|
|
indices.refresh: {}
|
|
|
|
- do:
|
|
search:
|
|
index: test_scroll
|
|
search_type: scan
|
|
scroll: 1m
|
|
body:
|
|
query:
|
|
match_all: {}
|
|
|
|
- set: {_scroll_id: scroll_id1}
|
|
|
|
- do:
|
|
clear_scroll:
|
|
scroll_id: $scroll_id1
|
|
|
|
- do:
|
|
scroll:
|
|
scroll_id: $scroll_id1
|
|
|
|
- length: {hits.hits: 0}
|