2014-04-08 09:41:32 -04:00
|
|
|
---
|
|
|
|
"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:
|
2014-05-05 04:35:46 -04:00
|
|
|
catch: missing
|
2014-04-08 09:41:32 -04:00
|
|
|
scroll:
|
|
|
|
scroll_id: $scroll_id1
|
2014-04-18 03:23:13 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
clear_scroll:
|
|
|
|
scroll_id: $scroll_id1
|
2015-04-02 21:51:15 -04:00
|
|
|
|
|
|
|
---
|
|
|
|
"Body params override query string":
|
|
|
|
- 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: "invalid_scroll_id"
|
|
|
|
body: { "scroll_id": [ "$scroll_id1" ]}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
scroll:
|
|
|
|
scroll_id: $scroll_id1
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: missing
|
|
|
|
clear_scroll:
|
|
|
|
scroll_id: $scroll_id1
|