rest-api-spec.test.scroll.11_clear.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-spec Show documentation
Show all versions of rest-api-spec Show documentation
OpenSearch subproject :rest-api-spec
The newest version!
---
"Clear scroll":
- do:
indices.create:
index: test_scroll
- do:
index:
index: test_scroll
id: 42
body: { foo: bar }
- do:
indices.refresh: {}
- do:
search:
rest_total_hits_as_int: true
index: test_scroll
scroll: 1m
body:
query:
match_all: {}
- set: {_scroll_id: scroll_id1}
- do:
clear_scroll:
scroll_id: $scroll_id1
- do:
catch: missing
scroll:
rest_total_hits_as_int: true
scroll_id: $scroll_id1
- do:
catch: missing
clear_scroll:
scroll_id: $scroll_id1
---
"Body params with array param override query string":
- do:
indices.create:
index: test_scroll
- do:
index:
index: test_scroll
id: 42
body: { foo: bar }
- do:
indices.refresh: {}
- do:
search:
rest_total_hits_as_int: true
index: test_scroll
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:
rest_total_hits_as_int: true
scroll_id: $scroll_id1
- do:
catch: missing
clear_scroll:
scroll_id: $scroll_id1
---
"Body params with string param scroll id override query string":
- do:
indices.create:
index: test_scroll
- do:
index:
index: test_scroll
id: 42
body: { foo: bar }
- do:
indices.refresh: {}
- do:
search:
rest_total_hits_as_int: true
index: test_scroll
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:
rest_total_hits_as_int: true
scroll_id: $scroll_id1
- do:
catch: missing
clear_scroll:
scroll_id: $scroll_id1
© 2015 - 2024 Weber Informatics LLC | Privacy Policy