Files
opensearch-pyd/utils/templates/overrides/__init__/clear_scroll
T

13 lines
476 B
Plaintext
Raw Normal View History

2019-12-22 15:15:00 +01:00
{% extends "base" %}
{% block request %}
if scroll_id in SKIP_IN_PATH and body in SKIP_IN_PATH:
raise ValueError("You need to supply scroll_id or body.")
elif scroll_id and not body:
body = {"scroll_id": [scroll_id]}
elif scroll_id:
params["scroll_id"] = scroll_id
2020-05-15 09:36:47 -05:00
return await self.transport.perform_request("{{ api.method }}", "/_search/scroll", params=params, headers=headers, body=body)
2019-12-22 15:15:00 +01:00
{% endblock %}